{"id":3174,"date":"2019-06-17T13:32:27","date_gmt":"2019-06-17T04:32:27","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3174"},"modified":"2019-06-17T13:51:32","modified_gmt":"2019-06-17T04:51:32","slug":"c-%e5%b1%9e%e6%80%a7-attribute","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3174","title":{"rendered":"[C#] \u5c5e\u6027 (Attribute)"},"content":{"rendered":"<p>\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3057\u3066\u4ed8\u52a0\u60c5\u5831\u3092\u4ed8\u3051\u52a0\u3048\u308b\u65b9\u6cd5<br \/>\n\u89d2\u62ec\u5f27\u3067\u56f2\u3093\u3060\u5c5e\u6027\u540d\u3092\u9069\u7528\u5148\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u5ba3\u8a00\u306e\u524d\u306b\u914d\u7f6e\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4f8b<\/h2>\n<pre class=\"lang:c# decode:true \" >[Serializable]\r\npublic class SampleClass\r\n{\r\n    \/\/ Objects of this type can be serialized.\r\n}<\/pre>\n<p><!--more--><\/p>\n<pre class=\"lang:c# decode:true \" >[System.Runtime.InteropServices.DllImport(\"user32.dll\")]\r\nextern static void SampleMethod();<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u53c2\u8003\u30ea\u30f3\u30af<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/dotnet\/csharp\/programming-guide\/concepts\/attributes\/\">\u5c5e\u6027(C#) | Microsoft Docs<\/a><\/li>\n<li><a href=\"https:\/\/www.atmarkit.co.jp\/fdotnet\/csharp_abc\/csharp_abc_020\/csharp_abc01.html\"<\/a>@IT \u9023\u8f09:C#\u5165\u9580 \u7b2c20\u56de\u3000\u5b9f\u884c\u6642\u306b\u53c2\u7167\u53ef\u80fd\u306a\u5c5e\u6027<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3057\u3066\u4ed8\u52a0\u60c5\u5831\u3092\u4ed8\u3051\u52a0\u3048\u308b\u65b9\u6cd5 \u89d2\u62ec\u5f27\u3067\u56f2\u3093\u3060\u5c5e\u6027\u540d\u3092\u9069\u7528\u5148\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u5ba3\u8a00\u306e\u524d\u306b\u914d\u7f6e\u3059\u308b\u3002 &nbsp; \u4f8b [Serializable] public class SampleClass { \/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3174","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=3174"}],"version-history":[{"count":5,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3174\/revisions"}],"predecessor-version":[{"id":3180,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3174\/revisions\/3180"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}