void Write(BinaryWriter writer, GenericInstMethodSig sig) { writer.Write((byte)ObjectType.GenericInstMethodSig); writer.Write((byte)(sig == null ? 0 : sig.GetCallingConvention())); foreach (var ga in sig.GetGenericArguments()) { Write(writer, ga); } }
void Hash(GenericInstMethodSig sig) { if (sig == null) { return; } hasher.Hash((byte)sig.GetCallingConvention()); foreach (var ga in sig.GetGenericArguments()) { Hash(ga); } }