[This is preliminary documentation and is subject to change.]
CTor - deserializes ListWithEvents<(Of <(<'T>)>)>
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
protected ListWithEvents( SerializationInfo info, StreamingContext context ) |
| Visual Basic |
|---|
Protected Sub New ( _ info As SerializationInfo, _ context As StreamingContext _ ) |
| Visual C++ |
|---|
protected: ListWithEvents( SerializationInfo^ info, StreamingContext context ) |
| F# |
|---|
new : info:SerializationInfo * context:StreamingContext -> ListWithEvents |
| JScript |
|---|
protected function ListWithEvents( info : SerializationInfo, context : StreamingContext ) |
Parameters
- info
- Type: System.Runtime.Serialization..::..SerializationInfo
The SerializationInfo that contains serialized object
- context
- Type: System.Runtime.Serialization..::..StreamingContext
The source (see StreamingContext) of this deserialization.
Remarks
Only items (see Item[([( Int32])]) ) are deserialized.
Note for inheritors: Call this base class CTor in order to deserialize items. Another way is to deserialize them into local variable and then use Add(T) or AddRange(IEnumerable<(Of <<'(T>)>>)).
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | info is null |
| System..::..InvalidCastException | Serialized value was found but cannot be converted to type of corresponding property |
| System.Runtime.Serialization..::..SerializationException | An exception occured during deserialization |