IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Reflection.MethodSignature Class Referencesealed

Represents a method signature from IL metadadata. More...

Inheritance diagram for IKVM.Reflection.MethodSignature:
IKVM.Reflection.Signature

Public Member Functions

override bool Equals (object obj)
 
override int GetHashCode ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from IKVM.Reflection.Signature
static Type ReadType (ModuleReader module, ByteReader br, IGenericContext context)
 
static Type ReadRetType (ModuleReader module, ByteReader br, IGenericContext context)
 
static Type ReadParam (ModuleReader module, ByteReader br, IGenericContext context)
 
static void WriteType (ModuleBuilder module, ByteBuffer bb, Type type)
 
static void WriteCustomModifiers (ModuleBuilder module, ByteBuffer bb, CustomModifiers modifiers)
 
static Type[] BindTypeParameters (IGenericBinder binder, Type[] types)
 
- Package Functions inherited from IKVM.Reflection.Signature
- Static Package Functions inherited from IKVM.Reflection.Signature
- Static Package Attributes inherited from IKVM.Reflection.Signature

Detailed Description

Represents a method signature from IL metadadata.

Definition at line 38 of file MethodSignature.cs.

Member Function Documentation

◆ Equals()

override bool IKVM.Reflection.MethodSignature.Equals ( object obj)

Definition at line 146 of file MethodSignature.cs.

147 {
148 var other = obj as MethodSignature;
149 return other != null
150 && other.callingConvention == callingConvention
151 && other.genericParamCount == genericParamCount
152 && other.returnType.Equals(returnType)
153 && Util.ArrayEquals(other.parameterTypes, parameterTypes)
154 && other.modifiers.Equals(modifiers);
155 }

◆ GetHashCode()

override int IKVM.Reflection.MethodSignature.GetHashCode ( )

Definition at line 157 of file MethodSignature.cs.

158 {
159 return genericParamCount ^ 77 * (int)callingConvention
160 ^ 3 * returnType.GetHashCode()
161 ^ Util.GetHashCode(parameterTypes) * 5
162 ^ modifiers.GetHashCode() * 55;
163 }

The documentation for this class was generated from the following file: