Ankur Mistry
Explain any three C# 6 New Features ?
By Ankur Mistry in .NET Assemblies on Jan 28 2016
  • pankaj singh
    May, 2016 25

    http://www.codeproject.com/Articles/327916/C-Language-Features-From-C-to

    • 2
  • Sandeep Singh
    Aug, 2016 19

    (1) String interpolation by using symbol $ , (2) "Auto Property Initializer " which allows to initialize a property at declaration time E.g public string Country { get;} = "Country"; (3) Importing a class just like importing a namespace and consume each and every static member of the class directly in the code without a class name prefix again E.g. using static System.Console; class UsingStatic { static void Main() { WriteLine("Hello"); } }

    • 1
  • Chetan Raiyani
    Jun, 2016 24

    1)Await in catch and finally blocks 2)Initializers for auto-properties 3)nameof expressions

    • 1
  • Munesh Sharma
    May, 2016 9

    https://www.simple-talk.com/dotnet/.net-framework/whats-new-in-c-6/

    • 1
  • Khaleek Ahmad
    Feb, 2017 3

    For complete features of C# 6.0 please visit https://interview-preparation-for-you.blogspot.in/2017/02/c-60-features.html

    • 0
  • Khaleek Ahmad
    Feb, 2017 3

    For complete features of C# 6.0 please visit https://interview-preparation-for-you.blogspot.in/2017/02/c-60-features.html

    • 0
  • Khaleek Ahmad
    Feb, 2017 3

    For complete features of C# 6.0 please visit https://interview-preparation-for-you.blogspot.in/2017/02/c-60-features.html

    • 0
  • Keerthi Venkatesan
    Jun, 2016 8

    Static Using Syntax, Auto-Property Initializers ,Dictionary Initializers ,String Interpolation ,nameOf Expression ,Exception Filters etc,.

    • 0
  • Bhuvanesh Mohankumar
    May, 2016 29

    Exception Filters, String Format using $, Auto Property Intializer

    • 0
  • Ervis Trupja
    May, 2016 27

    1.You can create inline functions, Example: public int addNumbers(int a,int b) => a b; 2. You can declare static using, Example: using static System.Math; This would simplify the usage of Mathematical functions like Math.Pow(a,b). Instead of Math.Pow(a,b) you could use Pow(a,b) 3. It is now possible to declare the auto-properties, Example: public string FirstName { get; set; } = "Ervis";

    • 0
  • Vivek Kumar
    Apr, 2016 17

    Please refer to below link http://www.codeproject.com/Tips/1023426/Whats-New-in-Csharp

    • 0
  • Anil Jha
    Mar, 2016 2

    1. Auto property initializer 2. await in catch and finally block. 3. New way for Exception filters.

    • 0
  • Amit Verma
    Feb, 2016 5

    With C# 6, you can now add the using static qualifier and reference Example:using static System.Console;namespace CSharpSix {class Program{static void Main(string[] args){WriteLine("Hello World!");}} }

    • 0
  • Anil Kumar Murmu
    Feb, 2016 2

    To explore new features in c#6 please refer to http://www.c-sharpcorner.com/UploadFile/201fc1/experimenting-with-C-Sharp-6s-new-features/

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS