How to search for an object in List<object> having its field value
问题 The question is how to get an object from List having its field value I have got list called f_objects filled with objects. private List<F_object> f_objects; i've got also a string with some value : string name = "something"; F_object got a method returning its field called name: public string GetName() { return this.name; } Is there a built in method for compare objects in list vs this field value ? Or should i make a loop and compare like this: foreach(F_object ob in f_objects) { if String