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

◆ GetDefaultRowVersion()

DataRowVersion System.Data.DataRow.GetDefaultRowVersion ( DataViewRowState viewState)
inlinepackage

Definition at line 875 of file DataRow.cs.

876 {
877 if (_oldRecord == _newRecord)
878 {
879 _ = _oldRecord;
880 _ = -1;
881 return DataRowVersion.Default;
882 }
883 if (_oldRecord == -1)
884 {
885 return DataRowVersion.Default;
886 }
887 if (_newRecord == -1)
888 {
889 return DataRowVersion.Original;
890 }
891 if ((DataViewRowState.ModifiedCurrent & viewState) != 0)
892 {
893 return DataRowVersion.Default;
894 }
895 return DataRowVersion.Original;
896 }

References System.Data.DataRow._newRecord, System.Data.DataRow._oldRecord, and System.Xml.Dictionary.