예제 #1
0
 internal UnaryOperatorSymbolWithType AsEnum(TypeSymbol type)
 {
     if (this is UnaryOperatorSymbolWithMethod || !type.IsEnum || !Binder.TypesMatch(Type, type.EnumUnderlyingType))
     {
         return(null);
     }
     return(new UnaryOperatorSymbolWithType(this, type));
 }
예제 #2
0
 internal static bool Matches(this TypeSymbol s, TypeSymbol other) => Binder.TypesMatch(s, other);