Skip to content

Instantly share code, notes, and snippets.

@goldytech
Created October 7, 2019 11:04
Show Gist options
  • Save goldytech/96dff85158edb30e57c89e4d77eb999d to your computer and use it in GitHub Desktop.
Save goldytech/96dff85158edb30e57c89e4d77eb999d to your computer and use it in GitHub Desktop.
Updated Model
public class Employee
{
public int Id { get; set; }
public string Name { get; set; }
public bool IsManager { get; set; }
public Department Department { get; set; }
public void Deconstruct(out int id, out string name, out bool isManager, out Department department)
{
id = Id;
name = Name;
isManager = IsManager;
department = Department;
}
}
public class Department
{
public int Id { get; set; }
public string Name { get; set; }
public void Deconstruct(out int id, out string name)
{
id = Id;
name = Name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment