示例#1
0
 public virtual object this[int columnIndex]
 {
     get
     {
         IFakeColumn col   = this.Table.Columns.ElementAt(columnIndex);
         object      value = col[this.Index];
         return(value);
     }
     set
     {
         IFakeColumn col = this.Table.Columns.ElementAt(columnIndex);
         col[this.Index] = value;
     }
 }
示例#2
0
        public virtual object this[string columnName]
        {
            get
            {
                IFakeColumn col = this.Table.GetColumn(columnName);

                if (col == null)
                {
                    return(null);
                }

                object value = col[this.Index];
                return(value);
            }
            set
            {
                IFakeColumn col = this.Table.GetColumn(columnName);

                if (col != null)
                {
                    col[this.Index] = value;
                }
            }
        }
示例#3
0
 public virtual void AddColumn(IFakeColumn column)
 {
     this.CastColumn().Add(column);
 }