{"published":"2022-09-27 09:07:40","provider_url":"https://hatena.blog","blog_url":"https://baba-s.hatenablog.com/","author_name":"baba_s","author_url":"https://blog.hatena.ne.jp/baba_s/","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2022%2F09%2F27%2F090740\" title=\"\u3010C#\u3011\u7d99\u627f\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u57fa\u5e95\u30af\u30e9\u30b9\u3068\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e Type \u3092\u8fd4\u3059\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 - \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>","title":"\u3010C#\u3011\u7d99\u627f\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u57fa\u5e95\u30af\u30e9\u30b9\u3068\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e Type \u3092\u8fd4\u3059\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","version":"1.0","height":"190","image_url":null,"categories":["C#"],"provider_name":"Hatena Blog","width":"100%","type":"rich","url":"https://baba-s.hatenablog.com/entry/2022/09/27/090740","description":"\u6982\u8981 /// <summary> /// \u7d99\u627f\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u57fa\u5e95\u30af\u30e9\u30b9\u3068\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e Type \u3092\u8fd4\u3057\u307e\u3059 /// </summary> public static IEnumerable<Type> GetParentTypes( this Type self ) { if ( self == null ) yield break; foreach ( var x in self.GetInterfaces() ) { yield return x; } var currentBaseType = self.BaseType; while ( currentBas\u2026"}