c# - How to access properties of an object in a list? -
i trying take properties list of types , put them in list. not sure how iterate through list of objects gain access properties.
for example:
list<images> myimages = new list<images>(); list<string> typeofimage = new list<string>(); typeofimage.add(myimages.type); can me in this?
try this:
typeofimage = myimages.select(image => image.anypropertyyouneed).tolist();
Comments
Post a Comment