CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
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 Csla.State.Session

Public Member Functions

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

Protected Member Functions

virtual void GetState (SerializationInfo info)
 Add property values to the serialization stream.
virtual void SetState (SerializationInfo info)
 Set property values from serialization stream.

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.
Type Constraints
K :notnull 

Member Function Documentation

◆ Contains()

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

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

Parameters
keyKey value
Exceptions
ArgumentNullExceptionkey is null.

◆ GetState()

virtual void Csla.Core.MobileDictionary< K, V >.GetState ( SerializationInfo info)
inlineprotectedvirtual

Add property values to the serialization stream.

Parameters
info

Implements Csla.Serialization.Mobile.IMobileObject.

◆ MobileDictionary() [1/4]

Csla.Core.MobileDictionary< K, V >.MobileDictionary ( )
inline

Creates an instance of the type.

◆ MobileDictionary() [2/4]

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

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

Parameters
dictSource dictionary.
Exceptions
ArgumentNullExceptiondict is null.

◆ MobileDictionary() [3/4]

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

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.

◆ MobileDictionary() [4/4]

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

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.

◆ SetState()

virtual void Csla.Core.MobileDictionary< K, V >.SetState ( SerializationInfo info)
inlineprotectedvirtual

Set property values from serialization stream.

Parameters
info

Implements Csla.Serialization.Mobile.IMobileObject.


The documentation for this class was generated from the following file: