LazyDictionary<TKey, TValue> 类

 

命名空间:   Microsoft.WindowsAzure.Common.Internals
程序集:  Microsoft.WindowsAzure.Common(Microsoft.WindowsAzure.Common.dll 中)

继承层次结构

System.Object
  Microsoft.WindowsAzure.Common.Internals.LazyDictionary<TKey, TValue>

语法

public class LazyDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
    ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
    IEnumerable, ILazyCollection
generic<typename TKey, typename TValue>
public ref class LazyDictionary : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, 
    IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, ILazyCollection
type LazyDictionary<'TKey, 'TValue> = 
    class
        interface IDictionary<'TKey, 'TValue>
        interface ICollection<KeyValuePair<'TKey, 'TValue>>
        interface IEnumerable<KeyValuePair<'TKey, 'TValue>>
        interface IEnumerable
        interface ILazyCollection
    end
Public Class LazyDictionary(Of TKey, TValue)
    Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)),
    IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable, ILazyCollection

类型参数

  • TKey
  • TValue

构造函数

名称 说明
LazyDictionary<TKey, TValue>()

LazyDictionary<TKey, TValue>(IDictionary<TKey, TValue>)

LazyDictionary<TKey, TValue>(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)

LazyDictionary<TKey, TValue>(IEqualityComparer<TKey>)

LazyDictionary<TKey, TValue>(Int32)

LazyDictionary<TKey, TValue>(Int32, IEqualityComparer<TKey>)

属性

名称 说明
Count

IsInitialized

IsReadOnly

Item[TKey]

Keys

Values

方法

名称 说明
Add(TKey, TValue)

Add(KeyValuePair<TKey, TValue>)

Clear()

Contains(KeyValuePair<TKey, TValue>)

ContainsKey(TKey)

CopyTo(KeyValuePair<TKey, TValue>[], Int32)

Equals(Object)

(从 Object 继承。)

Finalize()

(从 Object 继承。)

GetEnumerator()

GetHashCode()

(从 Object 继承。)

GetType()

(从 Object 继承。)

MemberwiseClone()

(从 Object 继承。)

Remove(TKey)

Remove(KeyValuePair<TKey, TValue>)

ToString()

(从 Object 继承。)

TryGetValue(TKey, TValue)

显式接口实现

名称 说明
IEnumerable.GetEnumerator()

线程安全

此类型的任何公共静态(Visual Basic 中为 Shared)成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

Microsoft.WindowsAzure.Common.Internals 命名空间

返回页首