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))); }
public static string GetTypeName(TypeEn type) { return(GetTypeName((ulong)type)); }