C# Class XSpect.Yacq.Expressions.SerializedExpression

Represents a serialized expression, an expression that has object graph to reconstruct an expression.
Inheritance: YacqExpression
Datei anzeigen Open project: takeshik/yacq Class Usage Examples

Private Properties

Property Type Description
SerializedExpression System

Public Methods

Method Description
Deserialize ( ) : Expression

Gets the deserialized expression of this expression.

Save ( XmlDictionaryWriter writer ) : void

Saves the object graph which represents this expression using the specified XmlDictionaryWriter.

SaveBinary ( ) : Byte[]

Gets the object graph which represents this expression as Data Contract binary data.

SaveBinary ( FileInfo file ) : void

Saves the object graph which represents this expression as Data Contract binary data to specified file.

SaveBinary ( Stream stream ) : void

Saves the object graph which represents this expression as Data Contract binary data into an output stream.

SaveText ( ) : String

Gets the object graph which represents this expression as Data Contract XML data.

SaveText ( FileInfo file ) : void

Saves the object graph which represents this expression as Data Contract XML data to specified file.

SaveText ( Stream stream ) : void

Saves the object graph which represents this expression as Data Contract XML data into an output stream.

ToString ( ) : String

Returns a String that represents this expression.

Protected Methods

Method Description
ReduceImpl ( SymbolTable symbols, Type expectedType ) : Expression

Reduces (means deserialize) this node to a simpler expression with additional symbol tables.

Private Methods

Method Description
SerializedExpression ( SymbolTable symbols, Node node ) : System

Method Details

Deserialize() public method

Gets the deserialized expression of this expression.
public Deserialize ( ) : Expression
return System.Linq.Expressions.Expression

ReduceImpl() protected method

Reduces (means deserialize) this node to a simpler expression with additional symbol tables.
protected ReduceImpl ( SymbolTable symbols, Type expectedType ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The additional symbol table for reducing.
expectedType System.Type The type which is expected as the type of reduced expression.
return System.Linq.Expressions.Expression

Save() public method

Saves the object graph which represents this expression using the specified XmlDictionaryWriter.
public Save ( XmlDictionaryWriter writer ) : void
writer System.Xml.XmlDictionaryWriter An used to write the object graph.
return void

SaveBinary() public method

Gets the object graph which represents this expression as Data Contract binary data.
public SaveBinary ( ) : Byte[]
return Byte[]

SaveBinary() public method

Saves the object graph which represents this expression as Data Contract binary data to specified file.
public SaveBinary ( FileInfo file ) : void
file System.IO.FileInfo The file to write the output to.
return void

SaveBinary() public method

Saves the object graph which represents this expression as Data Contract binary data into an output stream.
public SaveBinary ( Stream stream ) : void
stream Stream The destination stream.
return void

SaveText() public method

Gets the object graph which represents this expression as Data Contract XML data.
public SaveText ( ) : String
return String

SaveText() public method

Saves the object graph which represents this expression as Data Contract XML data to specified file.
public SaveText ( FileInfo file ) : void
file System.IO.FileInfo The file to write the output to.
return void

SaveText() public method

Saves the object graph which represents this expression as Data Contract XML data into an output stream.
public SaveText ( Stream stream ) : void
stream Stream The destination stream.
return void

ToString() public method

Returns a String that represents this expression.
public ToString ( ) : String
return String