示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FastStatsSystemItem" /> class.
 /// </summary>
 /// <param name="Type">The type of this item (required).</param>
 /// <param name="Variable">If this item is a variable then these are the details.  If this item is a var code then these are the details of the variable the var code belongs to..</param>
 /// <param name="VarCode">If this item is a var code then these are the details..</param>
 /// <param name="Table">If this item is a table then these are the details..</param>
 /// <param name="Folder">If this item is a folder then these are the details..</param>
 public FastStatsSystemItem(TypeEnum Type = default(TypeEnum), VariableItem Variable = default(VariableItem), VarCode VarCode = default(VarCode), TableItem Table = default(TableItem), Folder Folder = default(Folder))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for FastStatsSystemItem and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Variable = Variable;
     this.VarCode  = VarCode;
     this.Table    = Table;
     this.Folder   = Folder;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderStructureNode" /> class.
 /// </summary>
 /// <param name="Folder">A folder in the folder structure tree.</param>
 /// <param name="Variable">A variable in the folder structure tree.</param>
 public FolderStructureNode(Folder Folder = default(Folder), VariableItem Variable = default(VariableItem))
 {
     this.Folder   = Folder;
     this.Variable = Variable;
 }