MapView.Settings.this C# (CSharp) Method

this() public method

Get/Set the Setting object tied to the input string
public this ( string key ) : Setting
key string
return Setting
		public Setting this[string key]
		{
			get
			{
				if (settings.ContainsKey(key))
					return settings[key];
				return null;
			}
			set
			{
				if (!settings.ContainsKey(key))
					settings.Add(key, value);
				else
				{
					settings[key] = value; value.Name = key;
				}
			}
		}