/// <summary> /// Determines, on this set of requirements, if properties must be explicitly declared to be included. /// </summary> /// <param name="requirementSetting">The requirement setting.</param> /// <returns><c>true</c> if properties must be explicitly declared, <c>false</c> otherwise.</returns> public static bool AllowImplicitProperties(this TemplateDeclarationRequirements requirementSetting) { return(!requirementSetting.HasFlag(TemplateDeclarationRequirements.Property)); }
/// <summary> /// Determines, on this set of requirements, if enum values must be explicitly declared to be included. /// </summary> /// <param name="requirementSetting">The requirement setting.</param> /// <returns><c>true</c> if enums must be explicitly declared, <c>false</c> otherwise.</returns> public static bool AllowImplicitEnumValues(this TemplateDeclarationRequirements requirementSetting) { return(!requirementSetting.HasFlag(TemplateDeclarationRequirements.EnumValue)); }
/// <summary> /// Determines, on this set of requirements, if methods must be explicitly declared to be included. /// </summary> /// <param name="requirementSetting">The requirement setting.</param> /// <returns><c>true</c> if methods must be explicitly declared, <c>false</c> otherwise.</returns> public static bool AllowImplicitMethods(this TemplateDeclarationRequirements requirementSetting) { return(!requirementSetting.HasFlag(TemplateDeclarationRequirements.Method)); }