public NodeInstructionGroup SetInstructionGroupTry(NodeInstructionGroupTry NewInstructionGroupTry) { if (NewInstructionGroupTry == null) { throw new ArgumentNullException(m_InstructionGroupTryName); } return(m_InstructionGroupTry.Set(NewInstructionGroupTry)); }
public static NodeInstructionGroupTry BuildWith() { //build fields Dictionary<FieldIdentifier, FieldBase> mutableFields = new Dictionary<FieldIdentifier, FieldBase>(); //Add Fields here: mutableFields.Add(new FieldIdentifier(m_CodeName), Code); //build children KeyedNodeCollection<NodeBase> mutableChildren = new KeyedNodeCollection<NodeBase>(); //Add Children here: mutableChildren.Add(SomeChild); //build node NodeInstructionGroupTry Builder = new NodeInstructionGroupTry( new ReadOnlyDictionary<FieldIdentifier, FieldBase>(mutableFields), new ReadOnlyCollection<NodeBase>(mutableChildren)); return Builder; }
public static NodeInstructionGroupTry BuildWith() { //build fields Dictionary <FieldIdentifier, FieldBase> mutableFields = new Dictionary <FieldIdentifier, FieldBase>(); //Add Fields here: mutableFields.Add(new FieldIdentifier(m_CodeName), Code); //build children KeyedNodeCollection <NodeBase> mutableChildren = new KeyedNodeCollection <NodeBase>(); //Add Children here: mutableChildren.Add(SomeChild); //build node NodeInstructionGroupTry Builder = new NodeInstructionGroupTry( new ReadOnlyDictionary <FieldIdentifier, FieldBase>(mutableFields), new ReadOnlyCollection <NodeBase>(mutableChildren)); return(Builder); }
public NodeInstructionGroup SetInstructionGroupTry(NodeInstructionGroupTry NewInstructionGroupTry) { if (NewInstructionGroupTry == null) { throw new ArgumentNullException(m_InstructionGroupTryName); } return m_InstructionGroupTry.Set(NewInstructionGroupTry); }