9. public string FirstName { get; set; } = "Jaliya";
public string LastName { get; set; } = "Udagedara";
public string LastName { get; } = "Udagedara";
10. public DateTime DateOfBirth { get; set; }
public int Age => DateTime.Now.Year - DateOfBirth.Year;
public override string ToString() =>
string.Format("{0} {1}", FirstName, LastName);
C# 2.0
Generics
Partial Classes
C# 3.0
Implicitly typed variables (var)
Object and collection initializers
Auto properties
Partial Methods
Extension Methods
Lambda Expressions
LINQ
C# 4.0
Named and optional arguments
Dynamic
Covariance and Contravariance
C# 5.0
Async/Await
Caller information
Covariance
Enables you to use a more specific type than originally specified.
Ex: IEnumerable<object> = IEnumerable<string>
Contravariance
Enables you to use a more generic (less derived) type than originally specified.
Ex: IEnumerable<string> = IEnumerable<object>
Visual Studio Community 2013
Includes all the great functionality of Visual Studio Professional 2013
Terms
Any individual developer can use Visual Studio Community to create their own free or paid apps
Organization can use for the following scenarios:
In a classroom learning environment
Academic research
Contributing to open source projects
.NET Open Source and Cross-Platform
ASP.NET and the C# compiler is already open sourced