示例#1
0
 public void SetSignature(Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
 {
     this.returnType     = returnType ?? this.Module.universe.System_Void;
     this.parameterTypes = Util.Copy(parameterTypes);
     this.modifiers      = PackedCustomModifiers.CreateFromExternal(returnTypeOptionalCustomModifiers, returnTypeRequiredCustomModifiers,
                                                                    parameterTypeOptionalCustomModifiers, parameterTypeRequiredCustomModifiers, this.parameterTypes.Length);
 }
示例#2
0
 public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, CallingConventions callingConvention,
                                       Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
                                       Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
 {
     return(DefinePropertyImpl(name, attributes, callingConvention, false, returnType, parameterTypes,
                               PackedCustomModifiers.CreateFromExternal(returnTypeOptionalCustomModifiers, returnTypeRequiredCustomModifiers, parameterTypeOptionalCustomModifiers, parameterTypeRequiredCustomModifiers, Util.NullSafeLength(parameterTypes))));
 }
示例#3
0
 private void SetSignature(Type returnType, Type[] parameterTypes, PackedCustomModifiers customModifiers)
 {
     CheckSig();
     this.returnType      = returnType ?? this.Module.universe.System_Void;
     this.parameterTypes  = Util.Copy(parameterTypes);
     this.customModifiers = customModifiers;
 }
示例#4
0
        private PropertyBuilder DefinePropertyImpl(string name, PropertyAttributes attributes, CallingConventions callingConvention, bool patchCallingConvention,
                                                   Type returnType, Type[] parameterTypes, PackedCustomModifiers customModifiers)
        {
            if (properties == null)
            {
                properties = new List <PropertyBuilder>();
            }
            PropertySignature sig = PropertySignature.Create(callingConvention, returnType, parameterTypes, customModifiers);
            PropertyBuilder   pb  = new PropertyBuilder(this, name, attributes, sig, patchCallingConvention);

            properties.Add(pb);
            return(pb);
        }
示例#5
0
 public void __SetSignature(Type returnType, CustomModifiers returnTypeCustomModifiers, Type[] parameterTypes, CustomModifiers[] parameterTypeCustomModifiers)
 {
     SetSignature(returnType, parameterTypes, PackedCustomModifiers.CreateFromExternal(returnTypeCustomModifiers, parameterTypeCustomModifiers, Util.NullSafeLength(parameterTypes)));
 }
示例#6
0
 public void SetSignature(Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
 {
     SetSignature(returnType, parameterTypes, PackedCustomModifiers.CreateFromExternal(returnTypeOptionalCustomModifiers, returnTypeRequiredCustomModifiers,
                                                                                       parameterTypeOptionalCustomModifiers, parameterTypeRequiredCustomModifiers, Util.NullSafeLength(parameterTypes)));
 }
示例#7
0
 private void SetSignature(Type returnType, Type[] parameterTypes, PackedCustomModifiers customModifiers)
 {
     CheckSig();
     this.returnType = returnType ?? this.Module.universe.System_Void;
     this.parameterTypes = Util.Copy(parameterTypes);
     this.customModifiers = customModifiers;
 }
示例#8
0
		private PropertyBuilder DefinePropertyImpl(string name, PropertyAttributes attributes, CallingConventions callingConvention, bool patchCallingConvention,
			Type returnType, Type[] parameterTypes, PackedCustomModifiers customModifiers)
		{
			if (properties == null)
			{
				properties = new List<PropertyBuilder>();
			}
			PropertySignature sig = PropertySignature.Create(callingConvention, returnType, parameterTypes, customModifiers);
			PropertyBuilder pb = new PropertyBuilder(this, name, attributes, sig, patchCallingConvention);
			properties.Add(pb);
			return pb;
		}