What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-20 17:36:10
nested value object c#
public class CityList : ValueObject<CityList>, IEnumerable<City> { private List<City> _cities { get; } public CityList(IEnumerable<City> cities) { &n... Add solution -
Other 2021-11-18 17:34:15
The entity or complex type cannot be constructed in a LINQ to Entities query
public static IEnumerable<table1> getData(int pCId, int pAId) { return (from a in db.table1.AsEnumerable() join b in db.table2.AsEnumerable() on a.AId equals b.Id where b.CId == pCId && a.AId == pA... Add solution -
Python 2021-11-14 18:36:20
lowest common ancestor in a binary tree
public class Node<T> where T:IComparable { public T Value { get; set; } public IList<Node<T>> Children { get; set; } public override string ToString() { return Value.ToString(); } public static Func<... Add solution -
C# 2021-11-08 12:59:18
Read csv file into wpf C#
public IEnumerable<Person> ReadCSV(string fileName) { // We change file extension here to make sure it's a .csv file. // TODO: Error checking. string[] lines = File.ReadAllLines(System.IO.Path.ChangeExtension(fileName, ".csv"))... Add solution