Exemple #1
0
 /// <summary>
 /// Creates a table definition.
 /// </summary>
 /// <param name="name">Name of table to create.</param>
 /// <param name="createSymbols">Flag if rows in this table create symbols.</param>
 /// <param name="unreal">Flag if table is unreal.</param>
 public TableDefinition(string name, bool createSymbols, bool unreal)
 {
     this.name          = name;
     this.createSymbols = createSymbols;
     this.unreal        = unreal;
     this.columns       = new ColumnDefinitionCollection();
 }
Exemple #2
0
 /// <summary>
 /// Creates a table definition.
 /// </summary>
 /// <param name="name">Name of table to create.</param>
 /// <param name="createSymbols">Flag if rows in this table create symbols.</param>
 /// <param name="unreal">Flag if table is unreal.</param>
 /// <param name="bootstrapperApplicationData">Flag if table is part of UX Manifest.</param>
 public TableDefinition(string name, bool createSymbols, bool unreal, bool bootstrapperApplicationData)
 {
     this.name          = name;
     this.createSymbols = createSymbols;
     this.unreal        = unreal;
     this.bootstrapperApplicationData = bootstrapperApplicationData;
     this.columns = new ColumnDefinitionCollection();
 }
Exemple #3
0
        /// <summary>
        /// Helper constructor.
        /// </summary>
        /// <param name="sourceLineNumbers">Source file and line number for this row.</param>
        /// <param name="columns">Definition of columns for this row.</param>
        private Row(SourceLineNumberCollection sourceLineNumbers, ColumnDefinitionCollection columns)
        {
            if (null == columns)
            {
                throw new ArgumentNullException("columns");
            }

            this.rowNumber         = rowCount++;
            this.sourceLineNumbers = sourceLineNumbers;
            this.fields            = new Field[columns.Count];

            for (int i = 0; i < this.fields.Length; ++i)
            {
                this.fields[i] = new Field(columns[i]);
                if (this.fields[i].Column.IsSymbol)
                {
                    this.hasSymbol = true;
                }
            }
        }
Exemple #4
0
        /// <summary>
        /// Helper constructor.
        /// </summary>
        /// <param name="sourceLineNumbers">Source file and line number for this row.</param>
        /// <param name="columns">Definition of columns for this row.</param>
        private Row(SourceLineNumberCollection sourceLineNumbers, ColumnDefinitionCollection columns)
        {
            if (null == columns)
            {
                throw new ArgumentNullException("columns");
            }

            this.rowNumber = rowCount++;
            this.sourceLineNumbers = sourceLineNumbers;
            this.fields = new Field[columns.Count];

            for (int i = 0; i < this.fields.Length; ++i)
            {
                this.fields[i] = new Field(columns[i]);
                if (this.fields[i].Column.IsSymbol)
                {
                    this.hasSymbol = true;
                }
            }
        }
 /// <summary>
 /// Creates a table definition.
 /// </summary>
 /// <param name="name">Name of table to create.</param>
 /// <param name="unreal">Flag if table is unreal.</param>
 public TableDefinition(string name, bool unreal)
 {
     this.name = name;
     this.unreal = unreal;
     this.columns = new ColumnDefinitionCollection();
 }