public static Func <T> CreateFactory <T>(XamlReader reader) where T : class
 {
     if (reader == null)
     {
         throw FxTrace.Exception.ArgumentNull(nameof(reader));
     }
     return(FuncFactory.CreateFunc <T>(reader));
 }
 public static Func <object> CreateFactory(XamlReader reader, Type resultType)
 {
     if (reader == null)
     {
         throw FxTrace.Exception.ArgumentNull(nameof(reader));
     }
     if (resultType == null)
     {
         throw FxTrace.Exception.ArgumentNull(nameof(resultType));
     }
     return(FuncFactory.CreateFunc(reader, resultType));
 }