TypeCodeDomSerializer.Deserialize Method
Deserializes the given type declaration.
Assembly: System.Design (in System.Design.dll)
public virtual Object Deserialize( IDesignerSerializationManager manager, CodeTypeDeclaration declaration )
Parameters
- manager
- Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager
The serialization manager to use for serialization.
- declaration
- Type: System.CodeDom.CodeTypeDeclaration
Type declaration to use for serialization.
| Exception | Condition |
|---|---|
| ArgumentNullException |
manager or typeDecl is Nothing. |
The Deserialize method deserializes a previously serialized code type declaration. The following table shows the tasks default implementation performs.
|
Task |
Description |
|---|---|
|
Case Sensitivity Checks |
The implementation searches for a CodeDomProvider service to decide if it should treat members as case sensitive or case insensitive. |
|
Statement Sorting |
All member variables and local variables from init methods are stored in a table. Then each statement in an init method is added to a statement collection grouped according to its left-hand side, so all statements assigning or operating on a particular variable are grouped under that variable. Variables that have no statements are discarded. |
|
Deserialization |
The statement collections for each variable are deserialized according to the variable. |
The following table shows the services the Deserialize method requires.
|
Service |
Description |
|---|---|
|
While not strictly necessary, the service, if available, is used to determine if the serialization should be case sensitive or case insensitive. |
|
|
If an object does not exist in the name table during deserialization, a query for IContainer is made. If this query succeeds, the container is checked for the object. The container is also used as a stand-in for any container argument needed by components. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
