public YamlDeserializerWithFallback WithFallback <T>() => new YamlDeserializerWithFallback( Fallback(_textReaderDeserialize, tr => YamlUtility.Deserialize <T>(tr())), Fallback(_filePathDeserialize, p => YamlUtility.Deserialize <T>(p)));
public static YamlDeserializerWithFallback Create <T>() => new YamlDeserializerWithFallback( (Func <TextReader> tr) => YamlUtility.Deserialize <T>(tr()), (string path) => YamlUtility.Deserialize <T>(path));