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

◆ ParseInternal()

static NameValuePair System.Data.Common.DbConnectionOptions.ParseInternal ( Dictionary< string, string > parsetable,
string connectionString,
bool buildChain,
Dictionary< string, string > synonyms,
bool firstKey )
inlinestaticprivate

Definition at line 417 of file DbConnectionOptions.cs.

418 {
421 NameValuePair result = null;
422 int num = 0;
423 int length = connectionString.Length;
424 while (num < length)
425 {
426 int num2 = num;
428 if (string.IsNullOrEmpty(keyname))
429 {
430 break;
431 }
432 string value;
433 string text = ((synonyms == null) ? keyname : (synonyms.TryGetValue(keyname, out value) ? value : null));
434 if (!IsKeyNameValid(text))
435 {
436 throw ADP.KeywordNotSupported(keyname);
437 }
439 {
441 }
442 if (nameValuePair != null)
443 {
444 NameValuePair nameValuePair3 = (nameValuePair.Next = new NameValuePair(text, keyvalue, num - num2));
446 }
447 else if (buildChain)
448 {
449 result = (nameValuePair = new NameValuePair(text, keyvalue, num - num2));
450 }
451 }
452 return result;
453 }
static int GetKeyValuePair(string connectionString, int currentPosition, StringBuilder buffer, bool useOdbcRules, out string keyname, out string keyvalue)
static bool IsKeyNameValid([NotNullWhen(true)] string keyname)

References System.buffer, System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Data.Common.DbConnectionOptions.GetKeyValuePair(), System.Data.Common.DbConnectionOptions.IsKeyNameValid(), System.Data.Common.ADP.KeywordNotSupported(), System.length, System.text, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Data.Common.DbConnectionOptions.DbConnectionOptions().