Skip to content

Instantly share code, notes, and snippets.

View ctrlShiftBryan's full-sized avatar

Bryan Arendt ctrlShiftBryan

View GitHub Profile
//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; }
}
//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
@ctrlShiftBryan
ctrlShiftBryan / test.html
Last active January 3, 2016 19:29
This is a test gist!
public class MyTest{
public string HelloEveryone(){
var x = 1;
return "Hello Everyone";
}
}