예제 #1
0
        private ParameterAttributes GetParameterAttributes(ParameterDefinition definition)
        {
            ParameterAttributes result = ParameterAttributes.None;

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.HasDefault) == Libs.Mono.Cecil.ParameterAttributes.HasDefault)
            {
                result |= ParameterAttributes.HasDefault;
            }

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.HasFieldMarshal) == Libs.Mono.Cecil.ParameterAttributes.HasFieldMarshal)
            {
                result |= ParameterAttributes.HasFieldMarshal;
            }

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.In) == Libs.Mono.Cecil.ParameterAttributes.In)
            {
                result |= ParameterAttributes.In;
            }

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.Lcid) == Libs.Mono.Cecil.ParameterAttributes.Lcid)
            {
                result |= ParameterAttributes.Lcid;
            }

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.Optional) == Libs.Mono.Cecil.ParameterAttributes.Optional)
            {
                result |= ParameterAttributes.Optional;
            }

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.Out) == Libs.Mono.Cecil.ParameterAttributes.Out)
            {
                result |= ParameterAttributes.Out;
            }

            if ((definition.Attributes & Libs.Mono.Cecil.ParameterAttributes.Retval) == Libs.Mono.Cecil.ParameterAttributes.Retval)
            {
                result |= ParameterAttributes.Retval;
            }

            return(result);
        }
예제 #2
0
 protected override System.Reflection.Emit.ParameterBuilder DefineParameter(int position, System.Reflection.ParameterAttributes attributes, string parameterName)
 {
     return(null);
 }
예제 #3
0
 public System.Reflection.Emit.ParameterBuilder DefineParameter(int position, System.Reflection.ParameterAttributes attributes, string strParamName)
 {
     throw null;
 }