+2006-02-15 Martin Baulig <martin@ximian.com>
+
+ * TypeBuilder.cs (TypeBuilder.DefineMethod): Also enable the
+ 2-argument version in the `BOOTSTRAP_NET_2_0' profile.
+ (TypeBuilder.DefineGenericMethod): Removed.
+
2006-02-14 Martin Baulig <martin@ximian.com>
* ConstructorBuilder.cs
}
#if NET_2_0 || BOOTSTRAP_NET_2_0
- public override bool Mono_IsInflatedMethod {
- get {
- return false;
- }
- }
-
- public override bool HasGenericParameters {
- get {
- return false;
- }
- }
-
public override bool IsGenericMethodDefinition {
get {
return false;
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public override extern MethodInfo MakeGenericMethod (Type [] types);
- public override bool Mono_IsInflatedMethod {
- get {
- return false;
- }
- }
-
- public override bool HasGenericParameters {
- get {
- return generic_params != null;
- }
- }
-
public override bool IsGenericMethodDefinition {
get {
- return HasGenericParameters;
+ return generic_params != null;
}
}
public override bool IsGenericMethod {
get {
- return HasGenericParameters;
+ return generic_params != null;
}
}
this.attrs = attributes;
this.call_conv = callingConvention;
if ((attributes & MethodAttributes.Static) == 0)
- this.call_conv |= CallingConventions.HasThis;
+ this.call_conv |= CallingConventions.HasThis;
this.rtype = return_type;
this.parameters = new Type [parameter_types.Length];
nativeCallConv, nativeCharSet);
}
-#if NET_2_0
+#if NET_2_0 || BOOTSTRAP_NET_2_0
public MethodBuilder DefineMethod (string name, MethodAttributes attributes) {
return DefineMethod (name, attributes, CallingConventions.Standard);
}
return generic_params;
}
- public MethodBuilder DefineGenericMethod (string name, MethodAttributes attributes)
- {
- return DefineMethod (name, attributes, CallingConventions.Standard, null, null);
- }
-
public static ConstructorInfo GetConstructor (Type instanciated, ConstructorInfo ctor)
{
ConstructorInfo res = instanciated.GetConstructor (ctor);