[bcl] Updates referencesource to 4.7.1
[mono-project.git] / mcs / class / referencesource / System.Runtime.Caching / System / Caching / MemoryCacheKey.cs
blob11da958ebbbabf416a9f03b02d0281e4e0e2e332
1 // <copyright file="MemoryCacheKey.cs" company="Microsoft">
2 // Copyright (c) 2009 Microsoft Corporation. All rights reserved.
3 // </copyright>
4 using System;
5 using System.Collections;
6 using System.Diagnostics.CodeAnalysis;
8 namespace System.Runtime.Caching {
9 internal class MemoryCacheKey {
10 private String _key;
11 private int _hash;
13 internal int Hash { get { return _hash; } }
14 internal String Key { get { return _key; } }
16 internal MemoryCacheKey(String key) {
17 _key = key;
18 _hash = key.GetHashCode();