Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InternalDataCollectionBase.cs
Go to the documentation of this file.
4
5namespace System.Data;
6
8{
10
11 [Browsable(false)]
12 public virtual int Count => List.Count;
13
14 [Browsable(false)]
15 public bool IsReadOnly => false;
16
17 [Browsable(false)]
18 public bool IsSynchronized => false;
19
20 [Browsable(false)]
21 public object SyncRoot => this;
22
23 protected virtual ArrayList List => null;
24
25 public virtual void CopyTo(Array ar, int index)
26 {
27 List.CopyTo(ar, index);
28 }
29
30 public virtual IEnumerator GetEnumerator()
31 {
32 return List.GetEnumerator();
33 }
34
35 internal int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale)
36 {
37 if (fCaseSensitive)
38 {
39 if (string.Compare(s1, s2, ignoreCase: false, locale) != 0)
40 {
41 return 0;
42 }
43 return 1;
44 }
45 if (locale.CompareInfo.Compare(s1, s2, CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0)
46 {
47 if (string.Compare(s1, s2, ignoreCase: false, locale) != 0)
48 {
49 return -1;
50 }
51 return 1;
52 }
53 return 0;
54 }
55}
virtual IEnumerator GetEnumerator()
virtual void CopyTo(Array array)
static readonly CollectionChangeEventArgs s_refreshEventArgs
int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale)
int Compare(string? string1, string? string2)
virtual CompareInfo CompareInfo