예제 #1
0
 public static Base ToPoco(this ITypedElement element, PocoBuilderSettings settings = null) =>
 new PocoBuilder(settings).BuildFrom(element);
예제 #2
0
 public static T ToPoco <T>(this ISourceNode source, PocoBuilderSettings settings = null) where T : Base =>
 (T)source.ToPoco(typeof(T), settings);
예제 #3
0
 public static Base ToPoco(this ISourceNode source, Type pocoType = null, PocoBuilderSettings settings = null) =>
 new PocoBuilder(settings).BuildFrom(source, pocoType);
예제 #4
0
 public static T ToPoco <T>(this IElementNavigator navigator, PocoBuilderSettings settings = null) where T : Base =>
 (T)navigator.ToPoco(typeof(T), settings);
예제 #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);
예제 #6
0
 public static T ToPoco <T>(this ITypedElement element, PocoBuilderSettings settings = null) where T : Base =>
 (T)element.ToPoco(settings);