This file contains hidden or 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
| //a class that has a parent id and contains a list of children | |
| public class Folder { | |
| public int Id { get; set; } | |
| public string Name { get; set; } | |
| public int? ParentId { get; set; } | |
| public List<Folder> Children { get; set; } | |
| public int Level { get; set; } | |
| } |
This file contains hidden or 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
| //unmodified | |
| var original = new List<Person>() { | |
| new Person() { Id = 1, Name = "Bryan" }, | |
| new Person() { Id = 2, Name = "Randy" }, | |
| new Person() { Id = 3, Name = "Jill" } }; | |
| //modified | |
| var updated = new List<Person>() { | |
| new Person() { Id = 1, Name = "Bryan" }, | |
| new Person() { Id = 2, Name = "Randi" }, //Update Randy to Randi |
This file contains hidden or 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 MyTest{ | |
| public string HelloEveryone(){ | |
| var x = 1; | |
| return "Hello Everyone"; | |
| } | |
| } |
NewerOlder