Mono.Xaml.XamlObjectElement.AddChildObject C# (CSharp) Méthode

AddChildObject() private méthode

private AddChildObject ( XamlObjectElement obj ) : void
obj XamlObjectElement
Résultat void
		private void AddChildObject (XamlObjectElement obj)
		{
			IList list = Object as IList;
			if (list != null) {
				list.Add (obj.Object);
				return;
			}

			XamlReflectionPropertySetter content_property = FindContentProperty ();
			if (content_property == null)
				throw Parser.ParseException ("Unable to add element {0} to element {1}.", obj.Name, Name);

			content_property.SetValue (obj.Object);
		}