Exemple #1
0
 public static void MaxFileSizeNotExceeded <T>(T actualSize, T maxSize, string argName)
     where T : struct, IConvertible, IComparable, IComparable <T>
 {
     if (actualSize.CompareTo(maxSize) > 0)
     {
         throw ExceptionsHelper.MaxFileSizeExceeded(actualSize, maxSize, argName);
     }
 }