I've got a class which is used as a list:
public class StudyOptions {
public decimal price { get; set; }
public string currency { get; set; }
public string currencyIdentifier { get; set; }
public bool lowGDP { get; set; }
public string method { get; set; }
}
List<StudyOptions> defaultOptions = new List<StudyOptions>();
This list gets populated with a stack of values and once finished I'd like to search the Method 'column' to ascertain whether it contains a particular string.
I've searched online and it seems to suggest using the Contains method but I just can't get this to work.
Could anyone assist please?
Thanks, C