/// <summary> /// Populates an object with data from a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed. /// </summary> /// <param name="info"> The info. </param> /// <param name="context"> The context. </param> protected override void OnDeserialize(SerializationInfo info, StreamingContext context) { base.OnDeserialize(info, context); Left = ( EditableExpression )info.GetValueWithType("Left"); Right = ( EditableExpression )info.GetValueWithType("Right"); }
/// <summary> /// Initializes a new instance of the <see cref="EditableConditionalExpression" /> class. /// </summary> /// <param name="nodeType"> Type of the node. </param> /// <param name="test"> The test. </param> /// <param name="ifTrue"> If true. </param> /// <param name="ifFalse"> If false. </param> public EditableConditionalExpression(ExpressionType nodeType, EditableExpression test, EditableExpression ifTrue, EditableExpression ifFalse) { NodeType = nodeType; Test = test; IfTrue = ifTrue; IfFalse = ifFalse; }
/// <summary> /// Initializes a new instance of the <see cref="EditableMethodCallExpression" /> class. /// </summary> /// <param name="arguments"> The arguments. </param> /// <param name="method"> The method. </param> /// <param name="theObject"> The object. </param> /// <param name="nodeType"> Type of the node. </param> public EditableMethodCallExpression(EditableExpressionCollection arguments, MethodInfo method, EditableExpression theObject, ExpressionType nodeType) { Arguments = arguments; Method = method; Object = theObject; NodeType = nodeType; }
/// <summary> /// Populates an object with data from a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed. /// </summary> /// <param name="info"> The info. </param> /// <param name="context"> The context. </param> protected override void OnDeserialize(SerializationInfo info, StreamingContext context) { base.OnDeserialize(info, context); Test = ( EditableExpression )info.GetValueWithType("Test"); IfTrue = ( EditableExpression )info.GetValueWithType("IfTrue"); IfFalse = ( EditableExpression )info.GetValueWithType("IfFalse"); }
/// <summary> /// Initializes a new instance of the <see cref="EditableTypeBinaryExpression" /> class. /// </summary> /// <param name="expression"> The expression. </param> /// <param name="type"> The type. </param> public EditableTypeBinaryExpression(EditableExpression expression, Type type) : base(type) { Expression = expression; }
/// <summary> /// Populates an object with data from a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed. /// </summary> /// <param name="info"> The info. </param> /// <param name="context"> The context. </param> protected override void OnDeserialize(SerializationInfo info, StreamingContext context) { base.OnDeserialize(info, context); Operand = ( EditableExpression )info.GetValueWithType("Operand"); }
/// <summary> /// Initializes a new instance of the <see cref="EditableUnaryExpression" /> class. /// </summary> /// <param name="nodeType"> Type of the node. </param> /// <param name="operand"> The operand. </param> /// <param name="type"> The type. </param> public EditableUnaryExpression(ExpressionType nodeType, EditableExpression operand, Type type) { NodeType = nodeType; Operand = operand; Type = type; }
/// <summary> /// Initializes a new instance of the <see cref="EditableListInitExpression" /> class. /// </summary> /// <param name="newEx"> The new ex. </param> /// <param name="initializers"> The initializers. </param> public EditableListInitExpression(EditableExpression newEx, IEnumerable <EditableElementInit> initializers) { Initializers = new EditableElementInitCollection(initializers); NewExpression = newEx; }