コード例 #1
0
 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>()));
 }