Пример #1
0
 public bool Equals(GenericLookupKey other)
 {
     return(LookupKind == other.LookupKind &&
            FixupKind == other.FixupKind &&
            RuntimeDeterminedTypeHelper.Equals(TypeArgument, other.TypeArgument) &&
            RuntimeDeterminedTypeHelper.Equals(MethodArgument?.Method ?? null, other.MethodArgument?.Method ?? null) &&
            ContextType == other.ContextType);
 }
Пример #2
0
 public bool Equals(GenericLookupKey other)
 {
     return(LookupKind == other.LookupKind &&
            FixupKind == other.FixupKind &&
            RuntimeDeterminedTypeHelper.Equals(TypeArgument, other.TypeArgument) &&
            RuntimeDeterminedTypeHelper.Equals(MethodArgument, other.MethodArgument) &&
            RuntimeDeterminedTypeHelper.Equals(FieldArgument, other.FieldArgument) &&
            MethodContext.Equals(other.MethodContext));
 }