示例#1
0
 public virtual void Disable([NotNull] Type featureType)
 {
     Disable(GlobalFeatureNameAttribute.GetName(featureType));
 }
示例#2
0
 public virtual string GetFeatureName()
 {
     return(Name ?? GlobalFeatureNameAttribute.GetName(Type));
 }
示例#3
0
 public virtual bool IsEnabled([NotNull] Type featureType)
 {
     return(IsEnabled(GlobalFeatureNameAttribute.GetName(featureType)));
 }
示例#4
0
 public virtual TFeature GetFeature <TFeature>()
     where TFeature : GlobalFeature
 {
     return((TFeature)GetFeature(GlobalFeatureNameAttribute.GetName <TFeature>()));
 }