{"id":82,"date":"2020-04-22T21:54:12","date_gmt":"2020-04-22T13:54:12","guid":{"rendered":"http:\/\/iotch.xyz\/?p=82"},"modified":"2020-04-22T21:54:12","modified_gmt":"2020-04-22T13:54:12","slug":"c-%e5%be%ae%e8%bd%af%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=82","title":{"rendered":"C# \u5fae\u8f6f\u6559\u7a0b"},"content":{"rendered":"\n<p class=\"has-text-color has-vivid-red-color\"><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/<\/a><\/p>\n\n\n\n<p>\u6b22\u8fce\u5b66\u4e60 C# \u6559\u7a0b\u7b80\u4ecb\u3002 \u672c\u7cfb\u5217\u6559\u7a0b\u4ece\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u6f14\u7ec3\u7684\u4ea4\u4e92\u5f0f\u8bfe\u7a0b\u5165\u624b\u3002 \u5728\u5f00\u59cb\u8fd9\u4e9b\u4e92\u52a8\u8bfe\u7a0b\u4e4b\u524d\uff0c\u53ef\u5728<a href=\"https:\/\/aka.ms\/dotnet3-csharp\" target=\"_blank\"  rel=\"nofollow\" >C# 101 \u89c6\u9891\u7cfb\u5217<\/a>\u4e2d\u4e86\u89e3 C# \u7684\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n\n\n\n<figure><iframe src=\"https:\/\/channel9.msdn.com\/Series\/CSharp-101\/What-is-C\/player?nocookie=true\" allowfullscreen=\"true\"><\/iframe><\/figure>\n\n\n\n<p>\u5934\u51e0\u4e2a\u8bfe\u7a0b\u901a\u8fc7\u5c0f\u7bc7\u5e45\u7684\u4ee3\u7801\u7247\u6bb5\u4ecb\u7ecd\u4e86 C# \u6982\u5ff5\u3002 \u8bfb\u8005\u5c06\u4e86\u89e3 C# \u8bed\u6cd5\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u548c\u5e03\u5c14\u503c\u7b49\u6570\u636e\u7c7b\u578b\u3002 \u5168\u90fd\u662f\u4ea4\u4e92\u5f0f\u8bfe\u7a0b\uff0c\u8bfb\u8005\u53ef\u4ee5\u5728\u51e0\u5206\u949f\u5185\u7f16\u5199\u5e76\u8fd0\u884c\u4ee3\u7801\u3002 \u65e0\u9700\u4e8b\u5148\u4e86\u89e3\u7f16\u7a0b\u6216 C# \u8bed\u8a00\uff0c\u5373\u53ef\u5b66\u4e60\u5934\u51e0\u4e2a\u8bfe\u7a0b\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u4f7f\u7528\u8054\u673a\u6d4f\u89c8\u5668\u4f53\u9a8c\u6216<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/local-environment\" target=\"_blank\"  rel=\"nofollow\" >\u5728\u81ea\u5df1\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\u4e2d<\/a>\u5b66\u4e60 Hello World \u8bfe\u7a0b\u4e4b\u540e\u7684\u5165\u95e8\u6559\u7a0b\u3002 \u6bcf\u4e2a\u6559\u7a0b\u7ed3\u675f\u65f6\uff0c\u53ef\u4ee5\u51b3\u5b9a\u662f\u7ee7\u7eed\u5728\u7ebf\u5b66\u4e60\u8fd8\u662f\u5728\u81ea\u5df1\u7684\u8ba1\u7b97\u673a\u4e0a\u5b66\u4e60\u4e0b\u4e00\u8282\u8bfe\u7a0b\u3002 \u53ef\u4ee5\u8bbf\u95ee\u76f8\u5173\u94fe\u63a5\u8bbe\u7f6e\u81ea\u5df1\u7684\u73af\u5883\u5e76\u7ee7\u7eed\u5728\u81ea\u5df1\u7684\u8ba1\u7b97\u673a\u4e0a\u5b66\u4e60\u4e0b\u4e00\u4e2a\u6559\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"hello-world\"><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/hello-world\" target=\"_blank\"  rel=\"nofollow\" >Hello world<\/a><\/h2>\n\n\n\n<p>\u5728 <a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/hello-world\" target=\"_blank\"  rel=\"nofollow\" >Hello world<\/a> \u6559\u7a0b\u4e2d\uff0c\u4f60\u5c06\u521b\u5efa\u6700\u57fa\u672c\u7684 C# \u7a0b\u5e8f\u3002 \u8bfb\u8005\u5c06\u63a2\u7d22 <code>string<\/code> \u7c7b\u578b\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u6587\u672c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"numbers-in-c\"><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/numbers-in-csharp\" target=\"_blank\"  rel=\"nofollow\" >C# \u4e2d\u7684\u6570\u5b57<\/a><\/h2>\n\n\n\n<p>\u5728 <a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/numbers-in-csharp\" target=\"_blank\"  rel=\"nofollow\" >C# \u4e2d\u7684\u6570\u5b57<\/a>\u6559\u7a0b\u4e2d\uff0c\u5c06\u4e86\u89e3\u8ba1\u7b97\u673a\u5982\u4f55\u5b58\u50a8\u6570\u5b57\uff0c\u4ee5\u53ca\u5982\u4f55\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u5b57\u6267\u884c\u8ba1\u7b97\u3002 \u8bfb\u8005\u5c06\u5b66\u4e60\u56db\u820d\u4e94\u5165\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528 C# \u6267\u884c\u6570\u5b66\u8fd0\u7b97\u3002 \u672c\u6559\u7a0b\u4e5f\u53ef<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/numbers-in-csharp-local\" target=\"_blank\"  rel=\"nofollow\" >\u4e0b\u8f7d\u5230\u8ba1\u7b97\u673a\u672c\u5730\u8fdb\u884c\u5b66\u4e60<\/a>\u3002<\/p>\n\n\n\n<p>\u82e5\u8981\u66f4\u597d\u5730\u5b66\u4e60\u672c\u6559\u7a0b\uff0c\u9700\u8981\u5df2\u5b8c\u6210 <a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/hello-world\" target=\"_blank\"  rel=\"nofollow\" >Hello world<\/a> \u8bfe\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"branches-and-loops\"><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/branches-and-loops\" target=\"_blank\"  rel=\"nofollow\" >\u5206\u652f\u548c\u5faa\u73af<\/a><\/h2>\n\n\n\n<p>\u5728<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/branches-and-loops\" target=\"_blank\"  rel=\"nofollow\" >\u5206\u652f\u548c\u5faa\u73af<\/a>\u6559\u7a0b\u4e2d\uff0c\u5c06\u4e86\u89e3\u6839\u636e\u53d8\u91cf\u4e2d\u5b58\u50a8\u7684\u503c\u9009\u62e9\u4e0d\u540c\u4ee3\u7801\u6267\u884c\u8def\u5f84\u7684\u57fa\u7840\u77e5\u8bc6\u3002 \u8bfb\u8005\u5c06\u5b66\u4e60\u63a7\u5236\u6d41\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u8fd9\u662f\u7a0b\u5e8f\u51b3\u5b9a\u9009\u62e9\u4e0d\u540c\u64cd\u4f5c\u7684\u57fa\u672c\u4f9d\u636e\u3002 \u672c\u6559\u7a0b\u4e5f\u53ef<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/branches-and-loops-local\" target=\"_blank\"  rel=\"nofollow\" >\u4e0b\u8f7d\u5230\u8ba1\u7b97\u673a\u672c\u5730\u8fdb\u884c\u5b66\u4e60<\/a>\u3002<\/p>\n\n\n\n<p>\u82e5\u8981\u66f4\u597d\u5730\u5b66\u4e60\u672c\u6559\u7a0b\uff0c\u9700\u8981\u5148\u5b8c\u6210 <a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/hello-world\" target=\"_blank\"  rel=\"nofollow\" >Hello World<\/a> \u548c <a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/numbers-in-csharp\" target=\"_blank\"  rel=\"nofollow\" >C# \u4e2d\u7684\u6570\u5b57<\/a>\u8bfe\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"list-collection\"><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/list-collection\" target=\"_blank\"  rel=\"nofollow\" >\u5217\u8868\u96c6\u5408<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/list-collection\" target=\"_blank\"  rel=\"nofollow\" >\u5217\u8868\u96c6\u5408<\/a>\u8bfe\u7a0b\u5c06\u4ecb\u7ecd\u5b58\u50a8\u4e00\u7cfb\u5217\u6570\u636e\u7684\u5217\u8868\u96c6\u5408\u7c7b\u578b\u3002 \u8bfb\u8005\u5c06\u5b66\u4e60\u5982\u4f55\u6dfb\u52a0\u548c\u5220\u9664\u9879\u3001\u5982\u4f55\u641c\u7d22\u9879\uff0c\u4ee5\u53ca\u5982\u4f55\u5bf9\u5217\u8868\u8fdb\u884c\u6392\u5e8f\u3002 \u8bfb\u8005\u5c06\u63a2\u7d22\u5404\u79cd\u5217\u8868\u3002 \u672c\u6559\u7a0b\u4e5f\u53ef<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/arrays-and-collections\" target=\"_blank\"  rel=\"nofollow\" >\u4e0b\u8f7d\u5230\u8ba1\u7b97\u673a\u672c\u5730\u8fdb\u884c\u5b66\u4e60<\/a>\u3002<\/p>\n\n\n\n<p>\u82e5\u8981\u66f4\u597d\u5730\u5b66\u4e60\u672c\u6559\u7a0b\uff0c\u9700\u8981\u5df2\u5b8c\u6210\u4e0a\u9762\u5217\u51fa\u7684\u8bfe\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction-to-classes\"><a href=\"https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to-csharp\/introduction-to-classes\" target=\"_blank\"  rel=\"nofollow\" >\u7c7b\u7b80\u4ecb<\/a><\/h2>\n\n\n\n<p>\u53ea\u80fd\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u81ea\u5df1\u7684\u672c\u5730\u5f00\u53d1\u73af\u5883\u548c .NET Core \u6f14\u7ec3\u6700\u540e\u4e00\u4e2a\u6559\u7a0b\u3002 \u8bfb\u8005\u5c06\u751f\u6210\u63a7\u5236\u53f0\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4e86\u89e3 C# \u8bed\u8a00\u4e2d\u9762\u5411\u5bf9\u8c61\u7684\u57fa\u672c\u529f\u80fd\u7684\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n\n\n\n<p>\u82e5\u8981\u66f4\u597d\u5730\u5b66\u4e60\u672c\u6559\u7a0b\uff0c\u9700\u8981\u5df2\u5b8c\u6210\u8054\u673a\u5165\u95e8\u6559\u7a0b\uff0c\u5e76\u4e14\u5df2\u5b89\u88c5 <a href=\"https:\/\/dotnet.microsoft.com\/download\" target=\"_blank\"  rel=\"nofollow\" >.NET Core SDK<\/a> \u548c <a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\"  rel=\"nofollow\" >Visual Studio Code<\/a>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"feedback\">\u53cd\u9988<\/h2>\n\n\n\n<p>\u53d1\u9001\u6709\u5173\u4ee5\u4e0b\u5bf9\u8c61\u7684\u53cd\u9988<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"82\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>https:\/\/docs.microsoft.com\/zh-cn\/dotnet\/csharp\/tutorials\/intro-to &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=82"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}