Exemple #1
0
 public static void Write(MethodGroup l, BinaryWriter writer)
 {
     Expression.Write(l.Object, writer);
     TypeMemberName.Write(l.MethodName, writer);
     Optional.Write(writer, l.MethodSignature, Signature.Write);
     TypeName.Write(l.DelegateType, writer);
 }
Exemple #2
0
 public MethodGroup(Expression o, TypeMemberName methodName, Optional <Signature> methodSignature, TypeName delegateType)
 {
     Object          = o;
     MethodName      = methodName;
     MethodSignature = methodSignature;
     DelegateType    = delegateType;
 }
Exemple #3
0
        new public static ReadProperty Read(BinaryReader reader)
        {
            var _Object   = Expression.Read(reader);
            var _Property = TypeMemberName.Read(reader);

            return(new ReadProperty(
                       _Object,
                       _Property));
        }
        public static StaticMemberName Read(BinaryReader reader)
        {
            var typeName   = TypeName.Read(reader);
            var memberName = TypeMemberName.Read(reader);

            return(new StaticMemberName(
                       typeName,
                       memberName));
        }
Exemple #5
0
        new public static CallDynamicMethod Read(BinaryReader reader)
        {
            var _Object    = Expression.Read(reader);
            var _Method    = TypeMemberName.Read(reader);
            var _Arguments = List.Read(reader, Expression.Read);

            return(new CallDynamicMethod(
                       _Object,
                       _Method,
                       _Arguments));
        }
Exemple #6
0
        new public static RemoveEventHandler Read(BinaryReader reader)
        {
            var _Object  = Expression.Read(reader);
            var _Event   = TypeMemberName.Read(reader);
            var _Handler = Expression.Read(reader);

            return(new RemoveEventHandler(
                       _Object,
                       _Event,
                       _Handler));
        }
Exemple #7
0
        new public static WriteProperty Read(BinaryReader reader)
        {
            var _Object   = Expression.Read(reader);
            var _Property = TypeMemberName.Read(reader);
            var _Value    = Expression.Read(reader);

            return(new WriteProperty(
                       _Object,
                       _Property,
                       _Value));
        }
Exemple #8
0
        new public static MethodGroup Read(BinaryReader reader)
        {
            var a = Expression.Read(reader);
            var b = TypeMemberName.Read(reader);
            var c = Optional.Read(reader, Signature.Read);
            var d = TypeName.Read(reader);

            return(new MethodGroup(
                       a,
                       b,
                       c,
                       d));
        }
 public StaticMemberName(TypeName typeName, TypeMemberName memberName)
 {
     TypeName   = typeName;
     MemberName = memberName;
 }
Exemple #10
0
 protected override void WriteExpression(BinaryWriter writer)
 {
     Expression.Write(Object, writer);
     TypeMemberName.Write(Event, writer);
     Expression.Write(Handler, writer);
 }
Exemple #11
0
 public RemoveEventHandler(Expression o, TypeMemberName ev, Expression handler)
 {
     Object  = o;
     Event   = ev;
     Handler = handler;
 }
Exemple #12
0
 protected override void WriteExpression(BinaryWriter writer)
 {
     Expression.Write(Object, writer);
     TypeMemberName.Write(Property, writer);
     Expression.Write(Value, writer);
 }
Exemple #13
0
 public WriteProperty(Expression o, TypeMemberName property, Expression value)
 {
     Object   = o;
     Property = property;
     Value    = value;
 }
Exemple #14
0
 public ReadProperty(Expression o, TypeMemberName property)
 {
     Object   = o;
     Property = property;
 }
 public static void Write(StaticMemberName m, BinaryWriter writer)
 {
     TypeName.Write(m.TypeName, writer);
     TypeMemberName.Write(m.MemberName, writer);
 }
Exemple #16
0
 protected override void WriteExpression(BinaryWriter writer)
 {
     Expression.Write(Object, writer);
     TypeMemberName.Write(Method, writer);
     List.Write(writer, Arguments, Expression.Write);
 }
Exemple #17
0
 public CallDynamicMethod(Expression o, TypeMemberName method, ImmutableList <Expression> arguments)
 {
     Object    = o;
     Method    = method;
     Arguments = arguments;
 }
Exemple #18
0
 public CallDynamicMethod(Expression o, TypeMemberName method, params Expression[] arguments)
     : this(o, method, ((IEnumerable <Expression>)arguments).ToImmutableList())
 {
 }