Remotion.Linq.SqlBackend.BooleanUtility.GetMatchingBoolType C# (CSharp) Метод

GetMatchingBoolType() публичный статический Метод

public static GetMatchingBoolType ( Type type ) : Type
type System.Type
Результат System.Type
    public static Type GetMatchingBoolType (Type type)
    {
      ArgumentUtility.CheckNotNull ("type", type);
      if (type == typeof (int))
        return typeof (bool);
      else if (type == typeof (int?))
        return typeof (bool?);
      else
        throw new ArgumentException ("Type must be Int32 or Nullable<Int32>.", "type");
    }