示例#1
0
        public static bool HasOneAccessModifierToggled(ClassSettings settings)
        {
            var count = 0;

            count += settings.HasFlag(ClassSettings.Private)  ? 1 : 0;
            count += settings.HasFlag(ClassSettings.Public)   ? 1 : 0;
            count += settings.HasFlag(ClassSettings.Internal) ? 1 : 0;

            return(count == 1);
        }
示例#2
0
 public static bool ShouldGenerateDtor(ClassSettings settings)
 {
     return(settings.HasFlag(ClassSettings.Dtor));
 }
示例#3
0
 public static bool IsSealed(ClassSettings settings)
 {
     return(settings.HasFlag(ClassSettings.Sealed));
 }
示例#4
0
 public static bool IsAbstract(ClassSettings settings)
 {
     return(settings.HasFlag(ClassSettings.Abstract));
 }