{"id":598,"date":"2012-07-27T16:04:57","date_gmt":"2012-07-27T08:04:57","guid":{"rendered":"http:\/\/www.vcoo.cc\/blog\/?p=598"},"modified":"2012-07-27T16:04:57","modified_gmt":"2012-07-27T08:04:57","slug":"csharp-string","status":"publish","type":"post","link":"https:\/\/vcoo.cc\/blog\/598\/","title":{"rendered":"C#\u4e2d\u5927\u5199String\u4e0e\u5c0f\u5199string\u7684\u533a\u522b"},"content":{"rendered":"<p>\u5728.Net\u5f00\u53d1\u4e2d\u6709\u4e9b\u670b\u53cb\u8fd8\u4e0d\u662f\u5f88\u660e\u767d\u5927\u5199String\u548c\u5c0f\u5199string\u7684\u533a\u522b\uff0c\u8fd9\u91cc\u6536\u96c6\u4e00\u4e9b\u89e3\u91ca\u5206\u4eab\u4e00\u4e0b\u3002<\/p>\n<p>String\u662f\u4e00\u4e2a\u7c7b\uff0cstring\u662f\u4e00\u79cd\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<p>1\u3001string\u662fc#\u4e2d\u7684\u7c7b\uff0cString\u662f.net Framework\u7684\u7c7b(\u5728C# IDE\u4e2d\u4e0d\u4f1a\u663e\u793a\u84dd\u8272)<br \/>\n2\u3001C# string\u6620\u5c04\u4e3a.net Framework\u7684String<br \/>\n3\u3001\u5982\u679c\u7528string,\u7f16\u8bd1\u5668\u4f1a\u628a\u5b83\u7f16\u8bd1\u6210String\uff0c\u6240\u4ee5\u5982\u679c\u76f4\u63a5\u7528String\u5c31\u53ef\u4ee5\u8ba9\u7f16\u8bd1\u5668\u5c11\u505a\u4e00\u70b9\u70b9\u5de5\u4f5c<br \/>\n4\u3001\u5982\u679c\u4f7f\u7528C#\uff0c\u5efa\u8bae\u4f7f\u7528string\uff0c\u6bd4\u8f83\u7b26\u5408\u89c4\u8303<br \/>\n5\u3001string \u59cb\u7ec8\u4ee3\u8868 System.String(1.x) \u6216 ::System.String(2.0) \uff0cString\u53ea\u6709\u5728\u524d\u9762\u6709using System;\u7684\u65f6\u5019\u5e76\u4e14\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u4e2d\u6ca1\u6709\u540d\u4e3aString\u7684\u7c7b\u578b\uff08class\u3001struct\u3001delegate\u3001enum\uff09\u7684\u65f6\u5019\u624d\u4ee3\u8868 System.String<br \/>\n6\u3001<span style=\"color: #ff0000;\">string\u662f\u5173\u952e\u5b57\uff0cString\u4e0d\u662f<\/span>\uff0c\u4e5f\u5c31\u662f\u8bf4string\u4e0d\u80fd\u4f5c\u4e3a\u7c7b\u3001\u7ed3\u6784\u3001\u679a\u4e3e\u3001\u5b57\u6bb5\u3001\u53d8\u91cf\u3001\u65b9\u6cd5\u3001\u5c5e\u6027\u7684\u540d\u79f0\uff0c\u800cString\u53ef\u4ee5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728.Net\u5f00\u53d1\u4e2d\u6709\u4e9b\u670b\u53cb\u8fd8\u4e0d\u662f\u5f88\u660e\u767d\u5927\u5199String\u548c\u5c0f\u5199string\u7684\u533a\u522b\uff0c\u8fd9\u91cc\u6536\u96c6\u4e00\u4e9b\u89e3\u91ca\u5206\u4eab\u4e00\u4e0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[195,201,202],"class_list":["post-598","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-csharp-2","tag-dotnet","tag-string","cat-13-id"],"_links":{"self":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/posts\/598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":0,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"wp:attachment":[{"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vcoo.cc\/blog\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}