Ejemplo n.º 1
0
            private IMethodSymbol ResolveStaticObjectEquals([NotNull] Compilation compilation)
            {
                INamedTypeSymbol objectType = KnownTypes.SystemObject(compilation);

                return(objectType?.GetMembers("Equals").OfType <IMethodSymbol>().FirstOrDefault(method => method.IsStatic));
            }
Ejemplo n.º 2
0
            private IMethodSymbol ResolveObjectReferenceEquals([NotNull] Compilation compilation)
            {
                INamedTypeSymbol objectType = KnownTypes.SystemObject(compilation);

                return(objectType?.GetMembers("ReferenceEquals").OfType <IMethodSymbol>().FirstOrDefault());
            }