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

◆ GetRecordState()

DataViewRowState System.Data.DataRow.GetRecordState ( int record)
inlinepackage

Definition at line 898 of file DataRow.cs.

899 {
900 if (record == -1)
901 {
902 return DataViewRowState.None;
903 }
904 if (record == _oldRecord && record == _newRecord)
905 {
906 return DataViewRowState.Unchanged;
907 }
908 if (record == _oldRecord)
909 {
910 if (_newRecord == -1)
911 {
912 return DataViewRowState.Deleted;
913 }
914 return DataViewRowState.ModifiedOriginal;
915 }
916 if (record == _newRecord)
917 {
918 if (_oldRecord == -1)
919 {
920 return DataViewRowState.Added;
921 }
922 return DataViewRowState.ModifiedCurrent;
923 }
924 return DataViewRowState.None;
925 }

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