I have an array of objects which contains various kinds of data in it, like int, string, bool. I need to get the individual records from the object.
I need to store them in a class.
I know I have to use generics, how to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to make a class (eg,
MyRecord) with the properties you need, then make a genericList<MyRecord>instance to hold the class instances.