void Hash(FieldSig sig) { if (sig == null) { return; } hasher.Hash((byte)sig.GetCallingConvention()); Hash(sig.GetFieldType()); }
void Write(BinaryWriter writer, FieldSig sig) { writer.Write((byte)ObjectType.FieldSig); writer.Write((byte)(sig == null ? 0 : sig.GetCallingConvention())); Write(writer, sig.GetFieldType()); }