I have struct containing strings and integers
public struct TxTemp
{
public int Channel;
public string Temperture;
public string TargetPwr;
}
out of this I build another struct
public struct Phys
{
public TxTemp[] NumberOfChannels;
public List<ChPWrWord> FullPhyChPwrWord;
}
where ChPwrTemp is another complex struct
now I want to create a list of just the TargetPwr
I really want it to be as short conversion a possible maybe some kind query .
List<string> TargetTemp = phys_ToTest24[Iphy].NumberOfChannels.OrderBy(x => x.TargetPwr).ToList();
and some other solution that didnt work , What am I missing here ?
in a general way how can I make a list that is made out of sub objects of other list<object>
???
thank you very much !