Class FeatureChange
Describes the change of a single feature.
Namespace: Unity.Industrial.Forma.Core.Variants
Syntax
public class FeatureChange : object
Properties
feature
Feature that is changing.
Declaration
public Feature feature { get; }
Property Value
| Type | Description | 
|---|---|
| Feature | The feature.  | 
isAdded
true if added, false otherwise.
Declaration
public bool isAdded { get; }
Property Value
| Type | Description | 
|---|---|
| Boolean | 
  | 
isRemoved
true if added, false otherwise.
Declaration
public bool isRemoved { get; }
Property Value
| Type | Description | 
|---|---|
| Boolean | 
  | 
Methods
Add(Feature)
Creates and returns a feature change that adds a feature.
Declaration
public static FeatureChange Add(Feature feature)
Parameters
| Type | Name | Description | 
|---|---|---|
| Feature | feature | The feature.  | 
Returns
| Type | Description | 
|---|---|
| FeatureChange | FeatureChange.  | 
Create(Feature, Boolean)
Creates and returns a feature change that adds or removes a feature.
Declaration
public static FeatureChange Create(Feature feature, bool add)
Parameters
| Type | Name | Description | 
|---|---|---|
| Feature | feature | The feature.  | 
| Boolean | add | if set to   | 
Returns
| Type | Description | 
|---|---|
| FeatureChange | FeatureChange.  | 
Remove(Feature)
Creates and returns a feature change that removes a feature.
Declaration
public static FeatureChange Remove(Feature feature)
Parameters
| Type | Name | Description | 
|---|---|---|
| Feature | feature | The feature.  | 
Returns
| Type | Description | 
|---|---|
| FeatureChange | FeatureChange.  |