Created
October 7, 2019 11:04
-
-
Save goldytech/96dff85158edb30e57c89e4d77eb999d to your computer and use it in GitHub Desktop.
Updated Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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