Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of <see cref="SubFeature"/>
 /// </summary>
 /// <param name="parent">Parent <see cref="Feature"/></param>
 /// <param name="featureName">Name of the <see cref="IFeature"/></param>
 public SubFeature(IFeature parent, FeatureName featureName)
 {
     Module = parent.Parent;
     Name   = featureName;
     Parent = parent;
     parent.AddSubFeature(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="Feature"/>
 /// </summary>
 /// <param name="module">Owning <see cref="Module"/></param>
 /// <param name="name"><see cref="FeatureName">Name</see> of the feature</param>
 public Feature(IModule module, FeatureName name)
 {
     Parent = module;
     Name   = name;
     module.AddFeature(this);
 }