Skip to content

myadhdoutlet/csharp-seven

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 list)
	{
		first = FirstName;
		last = LastName;
	}
}

About

Test suite that describes new features in C# 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%