{"id":114,"date":"2013-11-21T17:29:15","date_gmt":"2013-11-21T08:29:15","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=114"},"modified":"2015-10-24T18:08:18","modified_gmt":"2015-10-24T09:08:18","slug":"c-%e3%81%96%e3%81%a3%e3%81%8f%e3%82%8a%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%83%8f%e3%83%b3%e3%83%89%e3%83%a9%e3%81%a8%e3%83%a9%e3%83%a0%e3%83%80%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=114","title":{"rendered":"[C#] [\u3056\u3063\u304f\u308a]\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u30e9\u30e0\u30c0\u5f0f"},"content":{"rendered":"<p>C#3.0\u304b\u3089\u5c0e\u5165\u3055\u308c\u305f\u30e9\u30e0\u30c0\u5f0f<br \/>\n\u306a\u306b\u3084\u3089\u3068\u3066\u3082\u7c21\u6f54\u306b\u30b3\u30fc\u30c9\u304c\u8a18\u8ff0\u3067\u304d\u308b\u3089\u3057\u3044\u304c\u3001\u4ee5\u524d\u898b\u305f\u3068\u304d\u306f\u610f\u5473\u4e0d\u660e\u3060\u3063\u305f\u3002<br \/>\nLINQ\u304c\u7c21\u6f54\u306b\u66f8\u3051\u308b\u3089\u3057\u304f\u3001LINQ\u306e\u8aac\u660e\u3068\u4e00\u7dd2\u306b\u3067\u3066\u304d\u3066\u307e\u3059\u307e\u3059\u610f\u5473\u4e0d\u660e\u3060\u3063\u305f\u3002<\/p>\n<p>\u6700\u8fd1\u3088\u3046\u3084\u304f\u610f\u5473\u304c\u5206\u304b\u3063\u3066\u304d\u305f\u306e\u3067\u3001<strong>\u3056\u3063\u304f\u308a<\/strong>\u3068\u8aac\u660e\u3002<\/p>\n<p>\u306f\u3084\u3044\u8a71\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3068\u5f0f\u6728\u3092\u66f8\u304f\u306e\u304c\u697d\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3002<br \/>\n\u30c7\u30ea\u30b2\u30fc\u30c8\u304c\u3088\u304f\u308f\u304b\u3093\u306a\u3044\u4eba\u306f\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3092\u5148\u306b\u77e5\u3063\u3066\u304b\u3089\u899a\u3048\u305f\u307b\u3046\u304c\u3088\u3044\u3068\u601d\u3046\u3002<br \/>\n<a href=\"http:\/\/gomocool.net\/gomokulog\/?p=250\">\u30c7\u30ea\u30b2\u30fc\u30c8\u3068\u306f\u306a\u3093\u305e\u3084<\/a><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3063\u3066\u306e\u304c\u3088\u304f\u5206\u304b\u3093\u306a\u3044\u4eba\u3082\u3001\u5148\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u899a\u3048\u305f\u307b\u3046\u304c\u826f\u3044\u3068\u601d\u3046\u3002<br \/>\n<a href=\"http:\/\/gomocool.net\/gomokulog\/?p=255\">\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u306f\u306a\u3093\u305e\u3084<\/a><\/p>\n<p>\u5f0f\u6728\u306f\u307e\u3060\u4eca\u3044\u3061\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u304c\u3001\u95a2\u6570\u306e\u4e2d\u306b\u95a2\u6570\u3092\u66f8\u3044\u3066\u5f0f\u3092\u3064\u306a\u3044\u3067\u3044\u304f\u3063\u307d\u3044\u3002<br \/>\n(jQuery\u3063\u307d\u3044\u306a\u3002\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u306e\u3053\u3068\u304b\u306a\uff1f \u77e5\u3089\u3093\u3051\u3069\u3002)<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u4eca\u56de\u306f\u305d\u306e\u30c7\u30ea\u30b2\u30fc\u30c8\u304c\u697d\u306b\u66f8\u3051\u308b\u70b9\u3092\u3054\u8aac\u660e\u3002<\/p>\n<p>\u3093\u3058\u3083\u3001\u4f8b<br \/>\n\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3089\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3002\u3068\u3044\u3046\u3054\u304f\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3002<br \/>\n(\u3061\u306a\u307f\u306bwpf\u30d5\u30a9\u30fc\u30e0\u3067\u65b0\u898f\u4f5c\u6210\u3057\u3066\u30dc\u30bf\u30f3\u3092\u914d\u7f6e\u3057\u305f\u3082\u306e\u304c\u30d9\u30fc\u30b9\u3002)<\/p>\n<p>\u25a0\u666e\u901a\u306e\u65b9\u6cd5<\/p>\n<pre><code>public partial class MainWindow : Window\r\n{\r\n   public MainWindow()\r\n   {\r\n     InitializeComponent();\r\n\r\n     this.btn_Test.Click += btn_Test_Click;\r\n   }\r\n\r\n   void btn_Test_Click(object sender, RoutedEventArgs e)\r\n   {\r\n      MessageBox.Show(\"Push\");\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3060\u3068\u3001\u300c\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u3059\u300d\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u51e6\u7406\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u6bce\u56de\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u306a\u308b\u95a2\u6570\u3092\u4f5c\u6210\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u304b\u3063\u305f\u3002<br \/>\n\u3082\u3061\u308d\u3093\u3001\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u305f\u3089\u547c\u3073\u51fa\u3055\u308c\u308b\u95a2\u6570\u3092\u5171\u901a\u5316\u3057\u3066\u3082\u3088\u3044\u304c\u3001\u3053\u306e\u30dc\u30bf\u30f3\u306a\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3001\u3053\u306e\u30dc\u30bf\u30f3\u306a\u3089\u95a2\u6570\u3092\u5b9f\u884c\u3068\u5224\u65ad\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u5f15\u6570\u3060\u3063\u305f\u308a\u3068\u4f55\u304b\u3057\u3089\u5224\u65ad\u6750\u6599\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u3081\u3093\u3069\u3044\u3002<br \/>\n\u305d\u308c\u3067\u3001\u7d50\u5c40\u305d\u306e\u30dc\u30bf\u30f3\u304b\u3089\u3057\u304b\u547c\u3070\u308c\u306a\u3044\u306e\u306b\u3001\u30dc\u30bf\u30f3\u306e\u6570\u3060\u3051\u3067\u95a2\u6570\u304c\u3042\u3063\u305f\u308a\u3057\u3066\u3044\u305f\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001C#2.0\u3067\u533f\u540d\u30e1\u30bd\u30c3\u30c9\u304c\u3067\u304d\u305f\u3002<br \/>\n\u305d\u306e\u30dc\u30bf\u30f3\u304b\u3089\u3057\u304b\u4f7f\u308f\u308c\u306a\u3044\u306e\u306b\u3001\u308f\u3056\u308f\u3056\u540d\u524d\u3064\u3051\u3066\u95a2\u6570\u3064\u304f\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3058\u3083\u3093\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<br \/>\n\u25a0\u533f\u540d\u30e1\u30bd\u30c3\u30c9<\/p>\n<pre><code>public partial class MainWindow : Window\r\n{\r\n    public MainWindow()\r\n    {\r\n        InitializeComponent();\r\n\r\n        this.btn_Test.Click += delegate(object sender, RoutedEventArgs e)\r\n        {\r\n            MessageBox.Show(\"Push\");\r\n        };\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u95a2\u6570\u540d\u3092\u3064\u3051\u305a(\u533f\u540d)\u3001delegate\u3068\u66f8\u3044\u3066\u3001\u6b8b\u308a\u306e\u5f15\u6570\u3068\u51e6\u7406\u5185\u5bb9\u3092\u8a18\u8ff0\u3059\u308b\u3002<br \/>\n\u3053\u308c\u3067\u3001\u7121\u99c4\u306a\u95a2\u6570\u3092\u5897\u3084\u3059\u5fc5\u8981\u304c\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001C#3.0\u3067\u3001\u30e9\u30e0\u30c0\u5f0f\u304c\u5c0e\u5165\u3055\u308c\u3001\u578b\u63a8\u8ad6\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<code> <\/code><\/p>\n<pre class=\"lang:c# decode:true\">public partial class MainWindow : Window\r\n{\r\n    public MainWindow()\r\n    {\r\n        InitializeComponent();\r\n\r\n        this.btn_Test.Click += (sender, e) =&gt; { MessageBox.Show(\"Push\"); };\r\n    }\r\n}<\/pre>\n<p>\u5de6\u8fba=&gt;\u53f3\u8fba<br \/>\n\u3067\u8868\u3057\u3001\u5de6\u8fba\u306e\u5f15\u6570\u3092\u53f3\u8fba\u306e\u5f0f\u3078\u4ee3\u5165\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3092\u6301\u3064\u3089\u3057\u3044\u3002<br \/>\n=&gt;\u306f\u30b4\u30fc\u30ba\u30fb\u30c8\u30a5(goes to)\u3068\u8aad\u3080\u3089\u3057\u3044\u3002<br \/>\n\u3082\u306f\u3084\u578b\u5ba3\u8a00\u3082\u4e0d\u8981\u3002<br \/>\n\u304a\u305d\u3089\u304f\u3001\u5de6\u8fba\u306eClick\u306e\u578b\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30c7\u30ea\u30b2\u30fc\u30c8\u306a\u306e\u3067\u3001<\/p>\n<pre><code>public delegate void RoutedEventHandler(object sender, RoutedEventArgs e);<\/code><\/pre>\n<p>\u578b\u5ba3\u8a00\u3057\u306a\u304f\u3066\u3082\u63a8\u8ad6\u3057\u3066\u304f\u308c\u3066\u308b\u3063\u307d\u3044\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u304b\u306a\u308a\u30b3\u30fc\u30c9\u304c\u3059\u3063\u304d\u308a\u3059\u308b\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u4e00\u884c\u3060\u3063\u305f\u3089\u4e2d\u62ec\u5f27\u3044\u3089\u306a\u3044\u3089\u3057\u3044\u306e\u3067\u3001\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">this.btn_Test.Click += (sender, e) =&gt; MessageBox.Show(\"Push\");<\/pre>\n<p>\u3068\u3066\u3082\u30b9\u30c3\u30ad\u30ea\u3060\u3002<\/p>\n<p><del>LINQ\u306f\u307e\u305f\u4eca\u5ea6\u8abf\u3079\u3066\u307f\u3088\u3046\u3002<br \/>\n<\/del><\/p>\n<p>LINQ\u306b\u3064\u3044\u3066\u8a18\u4e8b\u66f8\u3044\u305f\u3000\u2192\u00a0 <a href=\"http:\/\/gomocool.net\/gomokulog\/?p=697\">[C#] LINQ\u3068\u306f\u306a\u3093\u305e\u3084<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003<br \/>\nhttp:\/\/msdn.microsoft.com\/ja-jp\/library\/bb882516.aspx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C#3.0\u304b\u3089\u5c0e\u5165\u3055\u308c\u305f\u30e9\u30e0\u30c0\u5f0f \u306a\u306b\u3084\u3089\u3068\u3066\u3082\u7c21\u6f54\u306b\u30b3\u30fc\u30c9\u304c\u8a18\u8ff0\u3067\u304d\u308b\u3089\u3057\u3044\u304c\u3001\u4ee5\u524d\u898b\u305f\u3068\u304d\u306f\u610f\u5473\u4e0d\u660e\u3060\u3063\u305f\u3002 LINQ\u304c\u7c21\u6f54\u306b\u66f8\u3051\u308b\u3089\u3057\u304f\u3001LINQ\u306e\u8aac\u660e\u3068\u4e00\u7dd2\u306b\u3067\u3066\u304d\u3066\u307e\u3059\u307e\u3059\u610f\u5473\u4e0d\u660e\u3060\u3063\u305f\u3002 \u6700\u8fd1\u3088\u3046\u3084\u304f\u610f\u5473\u304c\u5206&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=114\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[64],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-csharp"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":8,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":707,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/707"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}