Example #1
0
 public static Base ToPoco(this ITypedElement element, PocoBuilderSettings settings = null) =>
 new PocoBuilder(settings).BuildFrom(element);
Example #2
0
 public static T ToPoco <T>(this ISourceNode source, PocoBuilderSettings settings = null) where T : Base =>
 (T)source.ToPoco(typeof(T), settings);
Example #3
0
 public static Base ToPoco(this ISourceNode source, Type pocoType = null, PocoBuilderSettings settings = null) =>
 new PocoBuilder(settings).BuildFrom(source, pocoType);
Example #4
0
 public static T ToPoco <T>(this IElementNavigator navigator, PocoBuilderSettings settings = null) where T : Base =>
 (T)navigator.ToPoco(typeof(T), settings);
Example #5
0
#pragma warning disable 612, 618
        public static Base ToPoco(this IElementNavigator navigator, Type pocoType = null,
                                  PocoBuilderSettings settings = null) => navigator.ToSourceNode().ToPoco(pocoType, settings);
Example #6
0
 public static T ToPoco <T>(this ITypedElement element, PocoBuilderSettings settings = null) where T : Base =>
 (T)element.ToPoco(settings);