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); }
public static bool ShouldGenerateDtor(ClassSettings settings) { return(settings.HasFlag(ClassSettings.Dtor)); }
public static bool IsSealed(ClassSettings settings) { return(settings.HasFlag(ClassSettings.Sealed)); }
public static bool IsAbstract(ClassSettings settings) { return(settings.HasFlag(ClassSettings.Abstract)); }