示例#1
0
 /// <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));
 }
示例#2
0
 /// <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));
 }
示例#3
0
 /// <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));
 }