Example #1
0
 public static void AssertValidType(TypeEn type)
 {
     if ((type == TypeEn.None) ||
         (type == TypeEn.File) ||
         (type == TypeEn.Dir) ||
         (type == TypeEn.Other))
     {
         return;
     }
     throw new CannotHappenException(String.Format("Bad type: {0}", GetTypeName(type)));
 }
Example #2
0
 public static string GetTypeName(TypeEn type)
 {
     return(GetTypeName((ulong)type));
 }