LazyDictionary 构造函数 (IDictionary, IEqualityComparer)

初始化 LazyDictionary 类 的一个新实例。初始化 LazyDictionary 类 的一个新实例。

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

使用

用法
Dim dictionary As IDictionary(Of TKey, TValue)
Dim comparer As IEqualityComparer(Of TKey)

Dim instance As New LazyDictionary(Of TKey, TValue)(dictionary, comparer)

语法

声明
Public Sub New ( _
    dictionary As IDictionary(Of TKey, TValue), _
    comparer As IEqualityComparer(Of TKey) _
)
public LazyDictionary (
    IDictionary<TKey,TValue> dictionary,
    IEqualityComparer<TKey> comparer
)
public:
LazyDictionary (
    IDictionary<TKey, TValue>^ dictionary, 
    IEqualityComparer<TKey>^ comparer
)
public LazyDictionary (
    IDictionary<TKey,TValue> dictionary, 
    IEqualityComparer<TKey> comparer
)
public function LazyDictionary (
    dictionary : IDictionary<TKey,TValue>, 
    comparer : IEqualityComparer<TKey>
)

备注

默认构造函数将所有字段初始化为其默认值。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

LazyDictionary 类
LazyDictionary 成员
Microsoft.WindowsAzure.Common.Internals 命名空间