CodeDomSerializer.DeserializeStatementToInstance 方法

定义

反序列化单条语句。

protected:
 System::Object ^ DeserializeStatementToInstance(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatement ^ statement);
protected object DeserializeStatementToInstance (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatement statement);
protected object? DeserializeStatementToInstance (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatement statement);
member this.DeserializeStatementToInstance : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatement -> obj
Protected Function DeserializeStatementToInstance (manager As IDesignerSerializationManager, statement As CodeStatement) As Object

参数

manager
IDesignerSerializationManager

用于序列化的序列化管理器。

statement
CodeStatement

要反序列化的语句。

返回

反序列化 statement 所产生的对象实例。

注解

DeserializeStatementToInstance等效于调用 DeserializeStatement,不同之处在于,如果生成的语句是变量赋值语句、具有初始化表达式的变量声明或字段赋值语句,则返回对象实例。

适用于