public static TypeDef Copy(this TypeDef a_def, MacroControllerTypes a_newControllerTypes) { return(new TypeDef(a_def.Instance, a_def.PossibleMacroControllersTypes, a_def.HasSubtype) { CurrentControllerType = a_newControllerTypes }); }
private string CheckType(MacroControllerTypes a_macroControllerTypes) { return((PossibleMacroControllersTypes & a_macroControllerTypes) == a_macroControllerTypes?a_macroControllerTypes.ToString() : null); }
public TypeDef(string a_instanceName, MacroControllerTypes a_possiblePossibleMacroControllersTypes, bool a_hasSubtype = true) { Instance = a_instanceName; PossibleMacroControllersTypes = a_possiblePossibleMacroControllersTypes; HasSubtype = a_hasSubtype; }