public virtual string GetFeatureName()
 {
     return(Name ?? GlobalFeatureNameAttribute.GetName(Type));
 }
Пример #2
0
 public virtual bool IsEnabled <TFeature>()
     where TFeature : GlobalFeature
 {
     return(IsEnabled(GlobalFeatureNameAttribute.GetName <TFeature>()));
 }
Пример #3
0
 public virtual bool IsEnabled(Type featureType)
 {
     return(IsEnabled(GlobalFeatureNameAttribute.GetName(featureType)));
 }
Пример #4
0
 public virtual TFeature GetFeature <TFeature>()
     where TFeature : GlobalFeature
 {
     return((TFeature)GetFeature(GlobalFeatureNameAttribute.GetName <TFeature>()));
 }