private Exception resolve_token_exception(int metadataToken, ResolveTokenError error, string tokenType) { if (error == ResolveTokenError.OutOfRange) { return(new ArgumentOutOfRangeException("metadataToken", string.Format("Token 0x{0:x} is not valid in the scope of module {1}", metadataToken, this.name))); } return(new ArgumentException(string.Format("Token 0x{0:x} is not a valid {1} token in the scope of module {2}", metadataToken, tokenType, this.name), "metadataToken")); }
internal static extern string ResolveStringToken(IntPtr module, int token, out ResolveTokenError error);
internal static extern IntPtr ResolveFieldToken(IntPtr module, int token, IntPtr[] type_args, IntPtr[] method_args, out ResolveTokenError error);
internal static Exception resolve_token_exception(string name, int metadataToken, ResolveTokenError error, string tokenType) { if (error == ResolveTokenError.OutOfRange) { return(new ArgumentOutOfRangeException(nameof(metadataToken), string.Format("Token 0x{0:x} is not valid in the scope of module {1}", metadataToken, name))); } else { return(new ArgumentException(string.Format("Token 0x{0:x} is not a valid {1} token in the scope of module {2}", metadataToken, tokenType, name), nameof(metadataToken))); } }
internal static extern byte[] ResolveSignature (IntPtr module, int metadataToken, out ResolveTokenError error);
internal static extern MemberInfo ResolveMemberToken (IntPtr module, int token, IntPtr[] type_args, IntPtr[] method_args, out ResolveTokenError error);
internal static extern string ResolveStringToken (IntPtr module, int token, out ResolveTokenError error);
internal static MemberInfo ResolveMemberToken(IntPtr module, int token, IntPtr[] type_args, IntPtr[] method_args, out ResolveTokenError error) { throw new System.NotImplementedException(); }
internal Exception resolve_token_exception (int metadataToken, ResolveTokenError error, string tokenType) { if (error == ResolveTokenError.OutOfRange) return new ArgumentOutOfRangeException ("metadataToken", String.Format ("Token 0x{0:x} is not valid in the scope of module {1}", metadataToken, name)); else 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"); }
internal static Exception resolve_token_exception(Module module, int metadataToken, ResolveTokenError error, string tokenType) => resolve_token_exception(module.Name, metadataToken, error, tokenType);
internal static byte[] ResolveSignature (IntPtr module, int metadataToken, out ResolveTokenError error) { throw new System.NotImplementedException(); }
internal static MemberInfo ResolveMemberToken (IntPtr module, int token, IntPtr[] type_args, IntPtr[] method_args, out ResolveTokenError error) { throw new System.NotImplementedException(); }
internal static string ResolveStringToken (IntPtr module, int token, out ResolveTokenError error) { throw new System.NotImplementedException(); }
internal static byte[] ResolveSignature(IntPtr module, int metadataToken, out ResolveTokenError error) { throw new System.NotImplementedException(); }
internal static extern MemberInfo ResolveMemberToken(IntPtr module, int token, IntPtr[] type_args, IntPtr[] method_args, out ResolveTokenError error);
internal static extern IntPtr ResolveFieldToken (IntPtr module, int token, IntPtr[] type_args, IntPtr[] method_args, out ResolveTokenError error);
internal static extern byte[] ResolveSignature(IntPtr module, int metadataToken, out ResolveTokenError error);
internal static string ResolveStringToken(IntPtr module, int token, out ResolveTokenError error) { throw new System.NotImplementedException(); }