Visual Studio & c#6.0 Trial Report, continuously updated.

Source: Internet
Author: User

I was very excited to see the. NET open source message yesterday morning, after all, the. NET limited to Windows is often spurned by people. VB for the moment, C # has been blamed for the cross-platform of poor, I am powerless. Even with third-party cross-platform projects such as mono. NET cross-platform is still unsatisfactory.

See. NET open source message, and saw the visual Studio 2015, I did not think that the VS actually has integrated cross-platform development, which surprised me, so conservative and spurned the Android, Linux Microsoft, incredibly in their own vs on the integration of other platform development ....

My knowledge of Android is not very deep, just stay in the "Android program is mostly written in Java," such as the understanding. Now that Microsoft has really done this, I have to start researching Android apps! Laugh

However, the first thing to do is to study the new Visual Studio and the new C #, after all, the old bank ... I thought I could see. NET 5.0, and Microsoft dumped a. NET 4.6 .... Is......

First, send it. (Do not know is not everyone's only, should not ...) Microsoft asked me to login to Microsoft account when I downloaded it.

Http://download.microsoft.com/download/4/A/0/4A0D63BC-0F59-45E3-A0FF-9019285B3BC5/vs2015.preview_ult_ENU.iso

Download good ISO is 4.4G, compared to 2013update3 6G much smaller than a lot of ..... Is Microsoft optimizing the code? (Taunt is, VS12 only 1.5G)

Installation

Now that blend is mandatory for installation 233, the new vs core doesn't know what it is ... The choice is right!

Let's talk about C # 6.0

Microsoft released the C # 6.0 preview in May 14, but it needs to be manually installed into visual Studio, which is said to be compatible with the existing. NET version, which appears to be compatible with. NET 4.5,

C # 6.0 has several major updates, and the very big one is about attributes.

This is a preview of the official, last year's.

Http://msdn.microsoft.com/en-us/magazine/dn683793.aspx

Before c#6.0, it was so that a property was manually initialized

Private int Ten ;      Public int X    {        getreturn  _x;}         Set {_x = value;}    }

Now you can do this straight.

 Public int Get Set Ten  publicintgetset;

If you want to create a read-only property and assign it to him, that's what you used to do.

    Private ReadOnly int Ten ;      Public int Get return _x;} }    privatereadonlyint;      Public int Get return _y; } }

Now it's simplified into this

 Public int Get Ten ;  Public int Get ;

Previously, assigning a value to a property with a primary constructor is like this.

classpropertytest{Private ReadOnly int_x; Public intXGet{return_x; } }Private ReadOnly int_y;  Public intYGet{return_y;} }     PublicPoint (intXintY{_x= x; _y =y; }     PublicPropertyTest (): This(0,0) { }}

Now simplify it into this

class PropertyTest (intint{    publicintget;} = x;      Public int get; } = y;      Public  This (00) {}}

The property assignment was previously restricted to this kind of work.

classfirstquadrant{ Public intXGet;Private Set; }  Public intYGet;Private Set; }  PublicFirstquadrant (intXinty) {if(X <0)Throw NewArgumentException ("x must be positive."); if(Y <0)Throw NewArgumentException ("y must be positive."); X=x; Y=y; }}

You can do this now.

classFirstquadrant (intXinty) {    {        if(X <0)Throw NewArgumentException (nameof (x) +"must be a positive."); if(Y <0)Throw NewArgumentException (nameof (y) +"must be positive."); }     Public intXGet; } =x;  Public intYGet; } =y;}

The above is about the property changes, the other ... I'm going to say it slowly.

About the property changes, is really a grammatical sugar, but it is really convenient a lot, you do not black him >.<

All right... VS installed, reboot ....

Restart the end of this ... Call me to install mobile platform development tools, but also TM to network ...



The result is ... Half of the download exploded ... Say it's a download error or something ... Then I will never find this secondary installer ...

Walk you, like VS13 's steps.




Then is hahaha ha ha haha haha, how to log failed, not landing still can not use, ah haha haha
Settle in ... Zeo!



This is really .... haha haha haha haha t_t
No matter how VPN is not even ..... I have restarted ...


To go crazy, or landing not up, pop up a display can not open the verification page of IE, may be really IE7 too old ... Slowly upgrade to, and so on I have to go to work, the afternoon home on time to update.

Install a IE11 also want to install update first, really uncomfortable ...

Visual Studio & c#6.0 Trial Report, continuously updated.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.