Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Table

DataTable? System.Data.DataView.Table
getsetinherited

Definition at line 338 of file DataView.cs.

339 {
340 get
341 {
342 return _table;
343 }
344 set
345 {
346 DataCommonEventSource.Log.Trace("<ds.DataView.set_Table|API> {0}, {1}", ObjectID, value?.ObjectID ?? 0);
347 if (_fInitInProgress && value != null)
348 {
350 return;
351 }
352 if (_locked)
353 {
354 throw ExceptionBuilder.SetTable();
355 }
356 if (_dataViewManager != null)
357 {
358 throw ExceptionBuilder.CanNotSetTable();
359 }
360 if (value != null && value.TableName.Length == 0)
361 {
362 throw ExceptionBuilder.CanNotBindTable();
363 }
364 if (_table != value)
365 {
367 _table = value;
368 if (_table != null)
369 {
371 }
372 SetIndex2("", DataViewRowState.CurrentRows, null, fireEvent: false);
373 if (_table != null)
374 {
375 OnListChanged(new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, new DataTablePropertyDescriptor(_table)));
376 }
378 }
379 }
380 }
void RegisterMetaDataEvents(DataTable table)
virtual void OnListChanged(ListChangedEventArgs e)
Definition DataView.cs:1209
readonly DataViewListener _dvListener
Definition DataView.cs:106
DataTable _delayedTable
Definition DataView.cs:90
static ListChangedEventArgs s_resetEventArgs
Definition DataView.cs:88
void SetIndex2(string newSort, DataViewRowState newRowStates, IFilter newRowFilter, bool fireEvent)
Definition DataView.cs:1347
DataViewManager _dataViewManager
Definition DataView.cs:52

Referenced by System.Data.DataRowView.CreateChildView(), System.Data.DataRowView.CreateChildView(), System.Data.DataView.EndInit(), System.Data.DataView.Equals(), System.Data.DataRowView.GetProperties(), and System.Data.DataView.ToTable().