CodeDomSerializer.DeserializeStatementToInstance Method (IDesignerSerializationManager, CodeStatement)

 

Deserializes a single statement.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

protected object DeserializeStatementToInstance(
	IDesignerSerializationManager manager,
	CodeStatement statement
)

Parameters

manager
Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager

The serialization manager to use for serialization.

statement
Type: System.CodeDom.CodeStatement

The statement to deserialize.

Return Value

Type: System.Object

An object instance resulting from deserializing statement.

The DeserializeStatementToInstance is equivalent of calling DeserializeStatement, except that it returns an object instance if the resulting statement was a variable assign statement, a variable declaration with an init expression, or a field assignment statement.

.NET Framework
Available since 2.0
Return to top
Show: