public override bool TryGetMember(GetMemberBinder binder, out object result) { string name = binder.Name; object value = null; if (this.Count > 0) { ListNTV temp = this.Rows[0]; value = temp[name]; } if (value != null) { result = value; return(true); } else { FormAsGlobal fg = this.Containers.Find(e => e.Name.Equals(name)); if (fg != null) { result = fg; return(true); } } result = null; return(false); }
public void Add(ListNTV listNTV) { this.Rows.Add(listNTV); }