{"id":1168,"date":"2008-04-26T23:06:00","date_gmt":"2008-04-26T14:06:00","guid":{"rendered":"https:\/\/hdmr.org\/d\/read.php\/1209218815"},"modified":"2008-04-26T23:06:00","modified_gmt":"2008-04-26T14:06:00","slug":"read-1209218815","status":"publish","type":"post","link":"http:\/\/hdmr.org\/d\/read.php\/1209218815","title":{"rendered":"\u5b9f\u4f53\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3044\u3068\u304d\u3001\u53c2\u7167\u3060\u3051\u307b\u3057\u3044\u3068\u304d"},"content":{"rendered":"<p>\u30d9\u30af\u30c8\u30eb\u4f7f\u3063\u3066\u3044\u308d\u3044\u308d\u66f8\u3044\u3066\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u307e\u3041\u5b8c\u6210\u3057\u305f\u3088\u3068\u3002<br \/>\u3051\u3069\u8a08\u7b97\u304c\u968f\u5206\u91cd\u3044\u3002\u66f2\u304c\u308b\u56de\u6570\u306e\u591a\u3044\u56f3\u9762\u306f\u5acc\u3046\u3089\u3057\u3044\u3002<br \/>\u3055\u3066\u3001\u3053\u308c\u306fC#\u306e\u30bd\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<pre>string[] str1 = new string[1];<br \/>string[] str2 = new string[1];<br \/>str1[0]= &quot;foo&quot;;<br \/>str2 = str1;<br \/>str1[0] = &quot;bar&quot;;<br \/>Console.WriteLine(str2[0]);<\/pre>\n<p>\u5927\u304d\u30551\u306e\u914d\u5217\u3060\u304c\u3001\u5225\u306bclass\u306a\u3089\u306a\u3093\u3067\u3082\u3044\u3044\u306f\u305a\u306a\u3093\u3060\u304c\u3001string\u306f\u3046\u307e\u304f\u3044\u304b\u3093\u3002<br \/>\u3053\u308c\u3092\u898b\u308b\u3068\u3001str1[0]\u306b&quot;foo&quot;\u3092\u5165\u308c\u3066\u3001\u3053\u308c\u3092str2=str1\u3068\u3057\u305f\u306e\u3067\u3001\u3053\u306e\u6642\u70b9\u3067\u306fstr2[0]\u306f&quot;foo&quot;\u3060\u3002<br \/>\u3057\u304b\u3057\u6b21\u3092\u898b\u308b\u3001str1[0]\u3092\u66f8\u304d\u63db\u3048\u305f\u3002\u3059\u308b\u3068str2[0]\u3082\u5909\u308f\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u8a71\u3002<br \/>\u3046\u3093\u3001\u3053\u308c\u3092\u52d5\u304b\u3059\u3068&quot;bar&quot;\u3068\u8fd4\u3063\u3066\u304f\u308b\u3088\u3002<br \/>\u3053\u3053\u3067\u3057\u305f\u4ee3\u5165\u3067\u306f\u3001\u5b9f\u4f53\u306e\u30b3\u30d4\u30fc\u306f\u4f34\u3063\u3066\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3002\u53c2\u7167\u3060\u3051\u30b3\u30d4\u30fc\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3002<br \/>\u3082\u3068\u3082\u3068str1\u306e\u5b9f\u4f53\u304c\u7532\u5730\u70b9\u306b\u3042\u3063\u305f\u3068\u3059\u308b\u3068\u3001str1\u3082str2\u3082\u5b9f\u4f53\u306f\u7532\u5730\u70b9\u306b\u3042\u308b\u3068\u6307\u3057\u3066\u3044\u308b\u3060\u3051\u3002<br \/>\u3053\u3053\u3067\u3001\u305d\u306e\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u7532\u5730\u70b9\u306e\u5b9f\u4f53\u3092\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3060\u304b\u3089\u3001str1\u3082str2\u3082\u66f8\u304d\u63db\u3048\u3089\u308c\u305f\u3082\u306e\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308b\u3068\u3002<br \/>\u4e00\u65b9\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306f\u5024\u6e21\u3057\u306a\u306e\u3067\u3001\u5b9f\u4f53\u306e\u30b3\u30d4\u30fc\u3092\u7528\u610f\u3057\u3066\u6e21\u3057\u3066\u3044\u307e\u3059\u3088\u3002<br \/>\u307e\u3041\u524d\u8005\u306f\u3042\u307e\u308a\u6c17\u306b\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u3088\u3046\u306a\u6c17\u306f\u3059\u308b\u306e\u3060\u304c\u3001\u5f8c\u8005\u306f\u5c11\u3057\u6c17\u306b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002<br \/>\u3051\u3069\u5b9f\u969b\u306f\u3042\u307e\u308a\u6c17\u306b\u3057\u306a\u304f\u3066\u3044\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3070\u3063\u304b\u308a\u66f8\u3044\u3066\u308b\u6c17\u304c\u3059\u308b\u3051\u3069\u3002<br \/>\u305f\u3068\u3048\u3070mypoint\u306a\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u306a\u3093\u304b\u52d5\u304b\u3059\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308b\u3068\u3002<br \/>\u307e\u3041\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3089\u3057\u3044\u30e1\u30bd\u30c3\u30c9\u306e\u52d5\u304b\u3057\u304b\u305f\u306f\u3001<\/p>\n<pre>mypoint.move(v);<\/pre>\n<p>\u3060\u306a\u3001\u307e\u3041\u3053\u308c\u3067\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u81ea\u4f53\u304c\u52dd\u624b\u306b\u52d5\u3044\u3066\u304f\u308c\u308b\u3002\u975e\u5e38\u306b\u697d\u3067\u3059\u306d\u3002<br \/>\u3051\u3069\u3001\u3053\u3053\u3067\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092static\u306b\u3057\u305f\u3068\u8003\u3048\u3088\u3046\u3002\u3059\u308b\u3068\u3053\u3093\u306a\u98a8\u306b\u306a\u308b\u304b\u306a\u3002<\/p>\n<pre>mypoint = move(mypoint&#44;v);<\/pre>\n<p>\u3053\u308c\u304c1\u3064\u306e\u9078\u629e\u80a2\u3060\u308d\u3046\u3002<br \/>\u3067\u3001\u3053\u3046\u3044\u3046\u98a8\u306b\u52d5\u4f5c\u3055\u305b\u305f\u3068\u304d\u3001\u5b9f\u4f53\u306f\u3069\u3046\u52d5\u304f\u304b\u3068\u3044\u3046\u8a71\u306a\u3093\u3060\u304c\u3002<br \/>\u305f\u3068\u3048\u3070\u3001mypoint\u306e\u5b9f\u4f53\u304c\u3082\u3068\u3082\u3068\u7532\u5730\u70b9\u306b\u3044\u305f\u3068\u3059\u308b\u3068\u3001move\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3059\u3068\u304d\u306b\u5b9f\u4f53\u306f\u4e59\u5730\u70b9\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3001\u4e59\u5730\u70b9\u3078\u306e\u53c2\u7167\u3092\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3059\u3068\u3002<br \/>\u305d\u3057\u3066\u3001move\u30e1\u30bd\u30c3\u30c9\u306f\u4e59\u5730\u70b9\u306e\u5b9f\u4f53\u3092\u3054\u306b\u3087\u3054\u306b\u3087\u3044\u3058\u3063\u3066\u3001\u591a\u5206\u6700\u5f8c\u306b\u306f\u4e59\u5730\u70b9\u306e\u53c2\u7167\u3092\u8fd4\u3059\u3067\u3057\u3087\u3046\u3002<br \/>\u305d\u3057\u3066\u3001mypoint\u306b\u306f\u4e59\u5730\u70b9\u306e\u53c2\u7167\u304c\u5165\u3063\u3066\u7d42\u4e86\u3002<br \/>\u305d\u306e\u5f8c\u6687\u306a\u3068\u304d\u306b\u3001GC\u304c\u4e00\u751f\u4f7f\u308f\u308c\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u3063\u305f\u7532\u5730\u70b9\u306e\u5b9f\u4f53\u3092\u6383\u9664\u3057\u3066\u304f\u308c\u308b\u3002<br \/>GC\u304c\u6383\u9664\u3057\u3066\u304f\u308c\u308b\u306e\u306f.net Framework\u306e\u3057\u308f\u3056\u3067\u3059\u3088\u3002\u3053\u308c\u304c\u3042\u308b\u304a\u304b\u3052\u3067\u3044\u3061\u3044\u3061\u30e1\u30e2\u30ea\u306e\u958b\u653e\u3092\u3057\u306a\u304f\u3066\u3044\u3044\u3093\u3060\u3088\u3002<br \/>\u305f\u3060\u3001\u306a\u3093\u304b\u7121\u99c4\u304c\u591a\u3044\u3002\u305d\u3053\u3067C#\u3067\u306f\u3053\u3093\u306a\u53d6\u308a\u6271\u3044\u304c\u3067\u304d\u308b\u3002<\/p>\n<pre>move(ref mypoint&#44;v);<\/pre>\n<p>ref\u3068\u3044\u3046\u306e\u4ed8\u3051\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3053\u308d\u306f\u3001\u53c2\u7167\u6e21\u3057\u3092\u4f7f\u3046\u3068\u3044\u3046\u3053\u3068\u3002<br \/>\u3053\u306e\u5834\u5408\u3001\u540c\u69d8\u306bmypoint\u306e\u5b9f\u4f53\u304c\u3082\u3068\u3082\u3068\u7532\u5730\u70b9\u306b\u3044\u305f\u3068\u3059\u308b\u3068\u3001<br \/>move\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u7532\u5730\u70b9\u3078\u306e\u53c2\u7167\u3092\u6e21\u3059\u3002\u3053\u3053\u304c\u901a\u5e38\u306e\u5024\u6e21\u3057\u3068\u306e\u9055\u3044\u3002<br \/>\u3053\u3053\u3067move\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u7532\u5730\u70b9\u306e\u5b9f\u4f53\u3092\u3044\u3058\u3063\u3066\u3001\u7d42\u308f\u308a\u3002<br \/>\u3059\u308b\u3068\u3001mypoint\u306e\u4e2d\u8eab\u304c\u3072\u3068\u308a\u3067\u306b\u5909\u308f\u3063\u3066\u304f\u308c\u3066\u308b\u3002<br \/>\u307e\u3041C\u306a\u3093\u304b\u3058\u3083\u3088\u304f\u898b\u308b\u3084\u308a\u65b9\u3060\u306a\u3002\u50d5\u306f\u3001\u3072\u3068\u308a\u3067\u306b\u5024\u304c\u5909\u308f\u308b\u3042\u305f\u308a\u304c\u5acc\u3044\u3060\u304c\u3002<br \/>\u3060\u304b\u3089\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u81ea\u4f53\u304c\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u4e00\u756a\u76ee\u306e\u3088\u3046\u306a\u3084\u308a\u65b9\u3092\u3088\u304f\u3059\u308b\u308f\u3051\u3060\u304c\u3002<br \/>\u305d\u3093\u306a\u8abf\u5b50\u3067\u3044\u308d\u3044\u308d\u66f8\u3044\u3066\u3044\u3063\u3066\u305f\u306e\u3060\u304c\u3001\u3053\u3053\u3067\u3001\u4e8c\u756a\u76ee\u306e\u3084\u308a\u65b9\u306a\u3089\u3070\u3001<\/p>\n<pre>movedpoint= move(mypoint&#44;v);<\/pre>\n<p>\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3084\u308a\u305f\u304b\u3063\u305f\u3002<br \/>\u305d\u3053\u3067\u3053\u3093\u306a\u30bd\u30fc\u30b9\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre>point movedpoint = mypoint;<br \/>movedpoint.move(v);<\/pre>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u5927\u5931\u6557\u3002\u3053\u3053\u3067\u306e\u4ee3\u5165\u306f\u53c2\u7167\u3057\u304b\u4ee3\u5165\u3067\u304d\u3066\u306a\u3044\u304b\u3089\u3002\u5192\u982d\u3067\u66f8\u3044\u305f\u3068\u304a\u308a\u3067\u3059\u3002<br \/>movedpoint\u306e\u5b9f\u4f53\u306fmypoint\u306e\u5b9f\u4f53\u3068\u540c\u3058\u3002movedpoint.move(v);\u306e\u52d5\u4f5c\u3067mypoint\u307e\u3067\u3084\u3089\u308c\u305f\u3002<br \/>\u8abf\u3079\u3066\u305f\u306e\u3060\u304c\u3001Class\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u3001\u4e0e\u3048\u3089\u308c\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30b3\u30d4\u30fc\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308b\u3088\u3046\u306a\u3082\u306e\u3092\u4f5c\u308c\u3070\u3044\u3044\u3068\u3002<\/p>\n<pre>point movedpoint = new point(mypoint);<br \/>movedpoint.move(v);<\/pre>\n<p>\u3053\u308c\u3067\u3044\u3044\u3002\u30b3\u30d4\u30fc\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u5b8c\u74a7\u306a\u30b3\u30d4\u30fc\u3092\u4f5c\u3063\u305f\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3060\u304c\u3001\u307e\u3041\u3044\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\u3055\u3066\u3001\u305d\u3093\u306a\u5177\u5408\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u305f\u3089\u3001\u307e\u3041\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002<br \/>\u306a\u3093\u304b\u3044\u308d\u3044\u308d\u8abf\u6574\u3057\u3066\u305f\u3089\u52d5\u4f5c\u3082\u3088\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\u4eba\u3088\u308a\u901f\u304f\u6c42\u3081\u3089\u308c\u308b\u306e\u304c\u76ee\u6a19\u3060\u306a\u3002\u7c21\u5358\u306a\u3082\u306e\u306a\u3089\u3059\u3067\u306b\u5b9f\u73fe\u3067\u304d\u3066\u308b\u3051\u3069\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d9\u30af\u30c8\u30eb\u4f7f\u3063\u3066\u3044\u308d\u3044\u308d\u66f8\u3044\u3066\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u307e\u3041\u5b8c\u6210\u3057\u305f\u3088\u3068\u3002\u3051\u3069\u8a08\u7b97\u304c\u968f\u5206\u91cd\u3044\u3002\u66f2\u304c\u308b\u56de\u6570\u306e\u591a\u3044\u56f3\u9762\u306f\u5acc\u3046\u3089\u3057\u3044\u3002\u3055\u3066\u3001\u3053\u308c\u306fC#\u306e\u30bd\u30fc\u30b9\u3067\u3059\u3002 string[] str1 = new string[1];string[ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1168","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1168"}],"version-history":[{"count":0,"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/1168\/revisions"}],"wp:attachment":[{"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}