OpenBve.ManagedContent.KeyValuePair.KeyValuePair C# (CSharp) Méthode

KeyValuePair() private méthode

Creates a new key-value pair.
private KeyValuePair ( string key, string value ) : System
key string The key including the language code.
value string The value
Résultat System
            internal KeyValuePair(string key, string value)
            {
                int index = key.IndexOf('[');
                if (index >= 0 && key.Length != 0 && key[key.Length - 1] == ']') {
                    this.Key = key.Substring(0, index).TrimEnd();
                    this.Language = key.Substring(index + 1, key.Length - index - 2).Trim();
                    this.Value = value;
                } else {
                    this.Key = key;
                    this.Language = null;
                    this.Value = value;
                }
            }
ManagedContent.KeyValuePair