Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
Для C# теперь доступны два новых способа рефакторинга: введение переменной и инлайн переменной (удаление переменной).
Note: ReSharper doesn't work with Microsoft Visual Studio Express editionsВ любом случае, цена решарпера добавляет ощутимый процент к Professional версиии студии.
System.Linq: а в чем проблема? Решарпер не нарушает экологию: даже если этот using вычищен как неиспользуемый, как только вы введете где-то имя метода из данного пространства имен (например Select), он тут же предложит добавить его обратно.For web and console projects, the build will not generate any packages or dlls. When you deploy the project to the file system, you will see that the source code will be copied as well. The projects are compiled and run dynamically.
No build needed for changes to appear in browser
Thanks to the Rosyln compiler, if you change ".cs” files or project.json file and want to see the change in the browser, you don’t need to build the project any more. Just refresh the browser.
What is it? Here’s the scenario
Consider getting the grandchild of a parent object like this:
var g1 = parent.child.child.child;
Okay, so, this is some poor coding because the value of child could be null. If I attempt to ask for the value of child and the containing object is null, a NullReferenceException will be raised and my app will crash.
A().B().C().D().E() кидает исключение, то в стек трейсе будет видно, в каком месте исключение появилось, а приаттаченный дебаггер остановится не на строке, а на столбце с точкой, например.record class Point(int x, int y) {}
class Point
{
public int X {get; private set;}
public int Y {get; private set;}
[PrimaryConstructor]
public Point ([ValueFor("X")]int x, [ValueFor("Y")]int y)
{
X = x;
Y = y;
}
}
class Point(public int x, public int y) {}
Доступна превью новой версии Visual Studio, с Roslyn и C# 6