Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DBConcurrencyException.cs
Go to the documentation of this file.
4
5namespace System.Data;
6
8[TypeForwardedFrom("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
10{
11 private DataRow[] _dataRows;
12
13 public DataRow? Row
14 {
15 get
16 {
18 if (dataRows == null || dataRows.Length == 0)
19 {
20 return null;
21 }
22 return dataRows[0];
23 }
25 set
26 {
27 _dataRows = new DataRow[1] { value };
28 }
29 }
30
31 public int RowCount
32 {
33 get
34 {
36 if (dataRows == null)
37 {
38 return 0;
39 }
40 return dataRows.Length;
41 }
42 }
43
45 : this(System.SR.ADP_DBConcurrencyExceptionMessage, null)
46 {
47 }
48
49 public DBConcurrencyException(string? message)
50 : this(message, null)
51 {
52 }
53
54 public DBConcurrencyException(string? message, Exception? inner)
55 : base(message, inner)
56 {
57 base.HResult = -2146232011;
58 }
59
60 public DBConcurrencyException(string? message, Exception? inner, DataRow[]? dataRows)
61 : base(message, inner)
62 {
63 base.HResult = -2146232011;
65 }
66
68 : base(info, context)
69 {
70 }
71
73 {
74 base.GetObjectData(info, context);
75 }
76
77 public void CopyToRows(DataRow[] array)
78 {
79 CopyToRows(array, 0);
80 }
81
82 public void CopyToRows(DataRow[] array, int arrayIndex)
83 {
84 _dataRows?.CopyTo(array, arrayIndex);
85 }
86}
DBConcurrencyException(string? message, Exception? inner)
override void GetObjectData(SerializationInfo info, StreamingContext context)
DBConcurrencyException(string? message, Exception? inner, DataRow[]? dataRows)
DBConcurrencyException(SerializationInfo info, StreamingContext context)
void CopyToRows(DataRow[] array, int arrayIndex)
Definition SR.cs:7