Пример #1
0
        public static ContentElement Weld <T>(this ContentElement content, string name) where T : ContentElement, new()
        {
            var t = new T();

            content.Weld(name, t);
            return(t);
        }
Пример #2
0
 public static void Weld(this ContentElement content, ContentElement property)
 {
     content.Weld(property.GetType().Name, property);
 }
Пример #3
0
 public static ContentElement Weld <T>(this ContentElement content) where T : ContentElement, new()
 {
     return(content.Weld <T>(typeof(T).Name));
 }