{"title":"\u3010C#\u3011\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u306e\u3059\u3079\u3066\u306e\u89aa\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5","author_url":"https://blog.hatena.ne.jp/baba_s/","author_name":"baba_s","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 private static IEnumerable<string> GetParentDirectories( string path ) { while ( true ) { var directoryName = Path.GetDirectoryName( path ); if ( string.IsNullOrWhiteSpace( directoryName ) ) yield break; yield return directoryName; path = directoryName; } } \u4f7f\u7528\u4f8b foreach ( var parentDirectory i\u2026","provider_name":"Hatena Blog","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","url":"https://baba-s.hatenablog.com/entry/2021/10/19/090000","version":"1.0","categories":["C#"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2021%2F10%2F19%2F090000\" title=\"\u3010C#\u3011\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u306e\u3059\u3079\u3066\u306e\u89aa\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2021-10-19 09:00:00","provider_url":"https://hatena.blog","width":"100%","height":"190","blog_url":"https://baba-s.hatenablog.com/"}