Exemple #1
0
 private void EnsureColumnExists( TableColumn column )
 {
     if ( !myTable.Header.Columns.Contains( column ) )
     {
         throw new ArgumentException( "no such column: " + column.Name );
     }
 }
Exemple #2
0
        public object this[TableColumn column]
        {
            get
            {
                EnsureColumnExists( column );

                return this[ column.Name ];
            }
            set
            {
                EnsureColumnExists( column );

                myCells[ column.Name ] = value;
            }
        }