public extern int MetadataToken {
[MethodImplAttribute (MethodImplOptions.InternalCall)]
get;
- }
+ }
+
+ public extern int MDStreamVersion {
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ get;
+ }
#endif
public virtual Type[] FindTypes(TypeFilter filter, object filterCriteria)
public MethodInfo GetMethod (string name)
{
- return GetMethodImpl (name, defaultBindingFlags, null, CallingConventions.Any, Type.EmptyTypes, null);
+ // Can't call the other overloads since they call Type.GetMethod () which does a null check on the 'types' array
+ if (IsResource ())
+ return null;
+
+ Type globalType = GetGlobalType ();
+ return (globalType != null) ? globalType.GetMethod (name) : null;
}
public MethodInfo GetMethod (string name, Type[] types)
return name;
}
-#if NET_2_0
- [Obsolete ("Please use ModuleVersionId instead - this will be removed before Whidbey ships.")]
- public
-#else
- internal
-#endif
- Guid MvId {
+ internal Guid MvId {
get {
return Mono_GetGuid (this);
}
return new ArgumentException (String.Format ("Token 0x{0:x} is not a valid {1} token in the scope of module {2}", metadataToken, tokenType, name), "metadataToken");
}
- [Obsolete ("Please use ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) - this will be removed before Whidbey ships.")]
public FieldInfo ResolveField (int metadataToken) {
ResolveTokenError error;
return m;
}
- [Obsolete ("Please use ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) - this will be removed before Whidbey ships.")]
public MethodBase ResolveMethod (int metadataToken) {
ResolveTokenError error;
return s;
}
- [Obsolete ("Please use ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) - this will be removed before Whidbey ships.")]
public Type ResolveType (int metadataToken) {
ResolveTokenError error;
else
return Type.GetTypeFromHandle (new RuntimeTypeHandle (handle));
}
+
+ [MonoTODO]
+ public byte[] ResolveSignature (int metadataToken) {
+ throw new NotImplementedException ();
+ }
#endif
internal static Type MonoDebugger_ResolveType (Module module, int token)