Mono.Xaml.XamlReflectionPropertySetter.AddToDictionary C# (CSharp) Метод

AddToDictionary() приватный Метод

private AddToDictionary ( XamlObjectElement obj, object value ) : void
obj XamlObjectElement
value object
Результат void
		private void AddToDictionary (XamlObjectElement obj, object value)
		{
			IDictionary rd = prop.GetValue (target, null) as IDictionary;
			if (rd == null)
				throw Parser.ParseException ("Collection property in non collection type.");

			rd.Add (obj.X_Key, value);
		}
	}