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