All Projects → pardahlman → csharp-seven

pardahlman / csharp-seven

Licence: other
Test suite that describes new features in C# 7

Programming Languages

C#
18002 projects

New features in C# 7

Test suite of new features in C# 7

This repo contains a list of new features in C# 7. Examples are heavily influenced from StackOverflow documentation as well as this MSDN blog post.

Topics covered

Examples

Introduces object deconstruction, expression bodies and ValueTuples

class Person
{
	public string FirstName { get; set; }
	public string LastName { get; set; }
	public (string First, string Last) FullName => (FirstName, LastName);

	public void Deconstruct(out string first, out string last)
	{
		first = FirstName;
		last = LastName;
	}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].