Ejemplo n.º 1
0
            private IMethodSymbol ResolveNullableEquals([NotNull] Compilation compilation)
            {
                INamedTypeSymbol nullableType = KnownTypes.SystemNullableT(compilation);

                return(nullableType?.GetMembers("Equals").OfType <IMethodSymbol>().FirstOrDefault());
            }
Ejemplo n.º 2
0
            private static IPropertySymbol ResolveNullableValueProperty([NotNull] Compilation compilation)
            {
                INamedTypeSymbol nullableType = KnownTypes.SystemNullableT(compilation);

                return(nullableType?.GetMembers("Value").OfType <IPropertySymbol>().FirstOrDefault());
            }