generics

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
Tony Johansson said:
Is it possible to use generics property?

You can't make a property generic in the same way that you can make a
method generic, i.e. introduce a new type parameter.

However, you *can* make a property of a type parameter, e.g in
IEnumerator<T> there's the property:

T Current { get; }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top