示例#1
0
 internal static Entity GetAnotherEntity(List <Entity> args, NumberEntity e)
 {
     if (args[0].entType == Entity.EntType.NUMBER && (args[0] as NumberEntity).Value == e.Value)
     {
         return(args[1]);
     }
     else
     {
         return(args[0]);
     }
 }
示例#2
0
 internal static bool IsOneNumber(List <Entity> args, NumberEntity e)
 {
     return(args[0].entType == Entity.EntType.NUMBER && (args[0] as NumberEntity).Value == e.Value ||
            args[1].entType == Entity.EntType.NUMBER && (args[1] as NumberEntity).Value == e.Value);
 }