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

◆ Contains() [2/2]

bool System.Data.DataColumnCollection.Contains ( string name,
bool caseSensitive )
inlinepackage

Definition at line 515 of file DataColumnCollection.cs.

516 {
517 if (_columnFromName.TryGetValue(name, out var value) && value != null)
518 {
519 return true;
520 }
521 if (!caseSensitive)
522 {
523 return IndexOfCaseInsensitive(name) >= 0;
524 }
525 return false;
526 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly Dictionary< string, DataColumn > _columnFromName

References System.Data.DataColumnCollection._columnFromName, System.Data.DataColumnCollection.IndexOfCaseInsensitive(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.