Пример #1
0
 public YamlDeserializerWithFallback WithFallback <T>() =>
 new YamlDeserializerWithFallback(
     Fallback(_textReaderDeserialize, tr => YamlUtility.Deserialize <T>(tr())),
     Fallback(_filePathDeserialize, p => YamlUtility.Deserialize <T>(p)));
Пример #2
0
 public static YamlDeserializerWithFallback Create <T>() =>
 new YamlDeserializerWithFallback(
     (Func <TextReader> tr) => YamlUtility.Deserialize <T>(tr()),
     (string path) => YamlUtility.Deserialize <T>(path));