"User Class Deconstructor"

class User {
	public string Name { get; set; }
	public int Age { get; set; }
	
	public void Deconstruct(out string name, out int age) {
		name = Name;
		age = Age;
	}
}

// ...

static void Test() {
	var user = new User { Name = "Ben", Age = 30 };

	var (name, age) = user;
}


Code snippet taken from "Two Decades of C#: A Reference - C# 7".