{"id":3054,"date":"2013-08-12T10:56:37","date_gmt":"2013-08-12T01:56:37","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=3054"},"modified":"2025-03-12T11:28:44","modified_gmt":"2025-03-12T02:28:44","slug":"ironpython%e3%81%a8%e3%82%b8%e3%82%a7%e3%83%8d%e3%83%aa%e3%83%83%e3%82%af%e3%81%a8%e5%88%9d%e6%9c%9f%e5%80%a4%e3%82%8f%e3%81%9f%e3%81%97","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2013\/08\/12\/ironpython%e3%81%a8%e3%82%b8%e3%82%a7%e3%83%8d%e3%83%aa%e3%83%83%e3%82%af%e3%81%a8%e5%88%9d%e6%9c%9f%e5%80%a4%e3%82%8f%e3%81%9f%e3%81%97\/","title":{"rendered":"IronPython\u3068\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u3068\u521d\u671f\u5024\u308f\u305f\u3057"},"content":{"rendered":"<p>C#\u52c9\u5f37\u4f1a\u306b\u884c\u3063\u3066\u81ea\u5df1\u7d39\u4ecb\u3067\u300cMVVM\u30d1\u30bf\u30fc\u30f3\u7528\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u4f7f\u3063\u3066View\u3068ViewModel\u306fC#\u3001Model\u306fIronPython\u3067\u66f8\u3044\u307e\u3059\u300d\u3068\u8a00\u3063\u305f\u3089\u5fae\u5999\u306a\u7a7a\u6c17\u306b\u306a\u308a\u307e\u3057\u305f\u3001\u590f\u3002<\/p>\n<p>murave\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067C#\u3068IronPython\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u66f8\u3044\u3066\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u914d\u5217\u3084\u8f9e\u66f8\u306f\u4fbf\u5229\u306a\u306e\u3067Python\u306e\u30e2\u30ce\u4f7f\u3063\u3066\u307e\u3057\u305f\u304c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30fb\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3084\u3063\u3066\u3066\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u4f7f\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3068\u3053\u308d\u3082\u3042\u308b\u304b\u306a\u3001\u3068\u3002<\/p>\n<p>IronPython\u5074\u3067\u306e\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u306e\u66f8\u304d\u65b9\u306f\u77e5\u3063\u3066\u3066\u305f\u307e\u306b\u4f7f\u3063\u3066\u305f\u3093\u3067\u3059\u304c(C#\u3067\u306e&lt;&gt;\u304c[]\u306b\u306a\u308a\u307e\u3059)\u3001\u8a66\u3057\u305f\u3089\u666e\u901a\u306b\u521d\u671f\u5024\u3082\u4e0e\u3048\u3089\u308c\u308b\u306e\u306b\u3061\u3087\u3063\u3068\u611f\u6fc0\u3002<\/p>\n<p>C#\u3067\u66f8\u304f\u3068List&lt;string&gt;\u306e\u5834\u5408<\/p>\n<pre lang=\"python\">\r\n>>> import site\r\n>>> import clr\r\n>>> from System.Collections import Generic as DotNetCollectionsG\r\n\r\n>>> dot_l = DotNetCollectionsG.List[str]()\r\n>>> print dot_l\r\nList[str]()\r\n\r\n>>> dot_l = DotNetCollectionsG.List[str](['a', 'b'])\r\n>>> print dot_l\r\nList[str](['a', 'b'])<\/pre>\n<p>C#\u3067\u66f8\u304f\u3068Dictionary&lt;string, int&gt;\u306e\u5834\u5408<\/p>\n<pre lang=\"python\">\r\n>>> import site\r\n>>> import clr\r\n>>> from System.Collections import Generic as DotNetCollectionsG\r\n\r\n>>> dot_dict = DotNetCollectionsG.Dictionary[str,int]()\r\n>>> print dot_dict\r\nDictionary[str, int]()\r\n\r\n>>> dot_dict = DotNetCollectionsG.Dictionary[str,int]({'a':1 ,'b':1})\r\n>>> print dot_dict\r\nDictionary[str, int]({'b' : 1, 'a' : 1})<\/pre>\n<p>\u306d\u266a<\/p>\n<p>help\u307f\u305f\u3089\u666e\u901a\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre lang=\"python\">\r\n>>> help(dot_dict)\r\nHelp on Dictionary[str, int] object:\r\n\r\nclass Dictionary[str, int](object)\r\n |  Dictionary[str, int]()\r\n |  Dictionary[str, int](capacity: int)\r\n |  Dictionary[str, int](comparer: IEqualityComparer[str])\r\n |  Dictionary[str, int](capacity: int, comparer: IEqualityComparer[str])\r\n |  Dictionary[str, int](dictionary: IDictionary[str, int])\r\n |  Dictionary[str, int](dictionary: IDictionary[str, int], comparer: IEqualityComparer[str])\r\n |\r\n\u4ee5\u4e0b\u7565\r\n<\/pre>\n<p>\u3048\u3089\u3044\u306a\u3041\u3002<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3054&#038;t=IronPython%E3%81%A8%E3%82%B8%E3%82%A7%E3%83%8D%E3%83%AA%E3%83%83%E3%82%AF%E3%81%A8%E5%88%9D%E6%9C%9F%E5%80%A4%E3%82%8F%E3%81%9F%E3%81%97&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3054&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=IronPython%E3%81%A8%E3%82%B8%E3%82%A7%E3%83%8D%E3%83%AA%E3%83%83%E3%82%AF%E3%81%A8%E5%88%9D%E6%9C%9F%E5%80%A4%E3%82%8F%E3%81%9F%E3%81%97\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3054&#038;text=IronPython%E3%81%A8%E3%82%B8%E3%82%A7%E3%83%8D%E3%83%AA%E3%83%83%E3%82%AF%E3%81%A8%E5%88%9D%E6%9C%9F%E5%80%A4%E3%82%8F%E3%81%9F%E3%81%97\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3054&#038;title=IronPython%E3%81%A8%E3%82%B8%E3%82%A7%E3%83%8D%E3%83%AA%E3%83%83%E3%82%AF%E3%81%A8%E5%88%9D%E6%9C%9F%E5%80%A4%E3%82%8F%E3%81%9F%E3%81%97\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=IronPython%E3%81%A8%E3%82%B8%E3%82%A7%E3%83%8D%E3%83%AA%E3%83%83%E3%82%AF%E3%81%A8%E5%88%9D%E6%9C%9F%E5%80%A4%E3%82%8F%E3%81%9F%E3%81%97&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3054\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=IronPython%E3%81%A8%E3%82%B8%E3%82%A7%E3%83%8D%E3%83%AA%E3%83%83%E3%82%AF%E3%81%A8%E5%88%9D%E6%9C%9F%E5%80%A4%E3%82%8F%E3%81%9F%E3%81%97&#038;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3054\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>C#\u52c9\u5f37\u4f1a\u306b\u884c\u3063\u3066\u81ea\u5df1\u7d39\u4ecb\u3067\u300cMVVM\u30d1\u30bf\u30fc\u30f3\u7528\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u4f7f\u3063\u3066View\u3068ViewModel\u306fC#\u3001Model\u306fIronPython\u3067\u66f8\u3044\u307e\u3059\u300d\u3068\u8a00\u3063\u305f\u3089\u5fae\u5999\u306a\u7a7a\u6c17\u306b\u306a\u308a\u307e\u3057\u305f\u3001\u590f\u3002 murave\u3067\u3059\u3002 \u3068\u3044\u3046\u308f\u3051 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,31],"tags":[32],"class_list":["post-3054","post","type-post","status-publish","format-standard","hentry","category-net","category-python","tag-ironpython"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/3054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=3054"}],"version-history":[{"count":11,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/3054\/revisions"}],"predecessor-version":[{"id":8219,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/3054\/revisions\/8219"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=3054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=3054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=3054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}