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

◆ AcceptRecord() [2/2]

bool System.Data.Index.AcceptRecord ( int record,
IFilter filter )
inlineprivate

Definition at line 158 of file Index.cs.

159 {
160 DataCommonEventSource.Log.Trace("<ds.Index.AcceptRecord|API> {0}, record={1}", ObjectID, record);
161 if (filter == null)
162 {
163 return true;
164 }
166 if (dataRow == null)
167 {
168 return true;
169 }
170 DataRowVersion version = DataRowVersion.Default;
171 if (dataRow._oldRecord == record)
172 {
173 version = DataRowVersion.Original;
174 }
175 else if (dataRow._newRecord == record)
176 {
177 version = DataRowVersion.Current;
178 }
179 else if (dataRow._tempRecord == record)
180 {
181 version = DataRowVersion.Proposed;
182 }
183 return filter.Invoke(dataRow, version);
184 }
readonly RecordManager _recordManager
Definition DataTable.cs:74
readonly DataTable _table
Definition Index.cs:32

References System.Data.DataTable._recordManager, System.Data.Index._table, System.Data.DataCommonEventSource.Log, and System.Data.Index.ObjectID.