Hi I want to search class from dictionary through LINQ
My data form is below. And i wanna use SearchDataFromString method in HoldingData class
When inserting a string, Linq is used to return all data of the symbol or name containing the string in the form of List.
public class HoldingData {
public Dictionary<string, SymbolsList> data;
public List<SymbolsList> SearchDataFromString(string nameOrSymbol){
//All data is store in **data**
//use LINQ
}
}
[System.Serializable]
public class SymbolsList
{
public string symbol;
public string name;
public string exchange;
}
Someone help me my problem thanks.