I am looking to create a simple array wrapper with a few helper methods, however I want this wrapper to be able to handle any 1 dimensional array/operation. So I am looking for a base type to cast the internal array to.
Can anyone sugest a type?
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 can use a generic type parameter:
The
List<T>class encapsulates an array generically and provides a number of helper methods already.