CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Core.MobileDictionary< K, V > Class Template Reference

Defines a dictionary that can be serialized through the SerializationFormatterFactory.GetFormatter(). More...

Inheritance diagram for Csla.Core.MobileDictionary< K, V >:
Csla.Serialization.Mobile.IMobileObject

Public Member Functions

 MobileDictionary ()
 Creates an instance of the type. More...
 
 MobileDictionary (int capacity)
 Creates an instance of the object based on the supplied dictionary, whose elements are copied to the new dictionary. More...
 
 MobileDictionary (IEqualityComparer< K > comparer)
 Creates an instance of the object based on the supplied dictionary, whose elements are copied to the new dictionary. More...
 
 MobileDictionary (Dictionary< K, V > dict)
 Creates an instance of the object based on the supplied dictionary, whose elements are copied to the new dictionary. More...
 
bool Contains (K key)
 Gets a value indicating whether the dictionary contains the specified key value. More...
 

Protected Member Functions

 MobileDictionary (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 Creates an instance of the object for serialization. More...
 

Detailed Description

Defines a dictionary that can be serialized through the SerializationFormatterFactory.GetFormatter().

Template Parameters
KKey value: any primitive or IMobileObject type.
VValue: any primitive or IMobileObject type.

Definition at line 24 of file MobileDictionary.cs.

Constructor & Destructor Documentation

◆ MobileDictionary() [1/5]

Creates an instance of the type.

Definition at line 32 of file MobileDictionary.cs.

◆ MobileDictionary() [2/5]

Csla.Core.MobileDictionary< K, V >.MobileDictionary ( int  capacity)

Creates an instance of the object based on the supplied dictionary, whose elements are copied to the new dictionary.

Parameters
capacityThe initial number of elements the dictionary can contain.

Definition at line 44 of file MobileDictionary.cs.

◆ MobileDictionary() [3/5]

Csla.Core.MobileDictionary< K, V >.MobileDictionary ( IEqualityComparer< K >  comparer)

Creates an instance of the object based on the supplied dictionary, whose elements are copied to the new dictionary.

Parameters
comparerThe comparer to use when comparing keys.

Definition at line 57 of file MobileDictionary.cs.

◆ MobileDictionary() [4/5]

Csla.Core.MobileDictionary< K, V >.MobileDictionary ( Dictionary< K, V >  dict)

Creates an instance of the object based on the supplied dictionary, whose elements are copied to the new dictionary.

Parameters
dictSource dictionary.

Definition at line 69 of file MobileDictionary.cs.

◆ MobileDictionary() [5/5]

Csla.Core.MobileDictionary< K, V >.MobileDictionary ( System.Runtime.Serialization.SerializationInfo  info,
System.Runtime.Serialization.StreamingContext  context 
)
protected

Creates an instance of the object for serialization.

Parameters
contextSerialization context.
infoSerialization info.

Definition at line 92 of file MobileDictionary.cs.

Member Function Documentation

◆ Contains()

bool Csla.Core.MobileDictionary< K, V >.Contains ( key)

Gets a value indicating whether the dictionary contains the specified key value.

Parameters
keyKey value

Definition at line 81 of file MobileDictionary.cs.