Beispiel #1
0
        public SerializableNewExpression(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            Arguments   = info.GetArrayFromSerializableForm <SerializableExpression>("Arguments");
            Constructor = info.GetString("Ctor").GetConstructorFromSerializableForm();
            var memberNames = info.GetArrayFromSerializableForm <string>("Members");

            Members = new MemberInfo[memberNames.Length];
            for (int i = 0; i < memberNames.Length; i++)
            {
                Members[i] = memberNames[i].GetMemberFromSerializableForm();
            }
        }
 public SerializableMethodCallExpression(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Arguments = info.GetArrayFromSerializableForm <SerializableExpression>("Arguments");
     Method    = info.GetString("Method").GetMethodFromSerializableForm();
     Object    = (SerializableExpression)info.GetValue("Object", typeof(SerializableExpression));
 }
Beispiel #3
0
 public SerializableMemberInitExpression(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     NewExpression = (SerializableNewExpression)info.GetValue("NewExpression", typeof(SerializableNewExpression));
     Bindings      = info.GetArrayFromSerializableForm <SerializableMemberBinding>("Bindings");
 }
 public SerializableLambdaExpression(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Body       = (SerializableExpression)info.GetValue("Body", typeof(SerializableExpression));
     Parameters = info.GetArrayFromSerializableForm <SerializableParameterExpression>("Parameters");
 }
 public SerializableInvocationExpression(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Expression = (SerializableExpression)info.GetValue("Expression", typeof(SerializableExpression));
     Arguments  = info.GetArrayFromSerializableForm <SerializableExpression>("Arguments");
 }
Beispiel #6
0
 public SerializableNewArrayExpression(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Expressions = info.GetArrayFromSerializableForm <SerializableExpression>("Expressions");
 }
 public SerializableMemberMemberBinding(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Bindings = info.GetArrayFromSerializableForm <SerializableMemberBinding>("Bindings");
 }
Beispiel #8
0
 public SerializableListInitExpression(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     NewExpression = (SerializableNewExpression)info.GetValue("NewExpression", typeof(SerializableNewExpression));
     Initializers  = info.GetArrayFromSerializableForm <SerializableElementInit>("Initializers");
 }
 public SerializableMemberListBinding(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Initializers = info.GetArrayFromSerializableForm <SerializableElementInit>("Initializers");
 }
Beispiel #10
0
 public SerializableElementInit(SerializationInfo info, StreamingContext context)
 {
     AddMethod = info.GetString("AddMethod").GetMethodFromSerializableForm();
     Arguments = info.GetArrayFromSerializableForm <SerializableExpression>("Arguments");
 }