from generic type to closed type

  • Thread starter Thread starter Tommaso Caldarola
  • Start date Start date
"Tommaso Caldarola" <[email protected]> a écrit dans le message de
[email protected]...

| In my method
|
| Method<T>()
| {
| //... some stuff
| }
|
| How can I know the real type of T?

In addition to other answers, I would comment : if you need to know the real
type in a generic method, you don't need a generic method.

Joanna
 
Joanna said:
"Tommaso Caldarola" <[email protected]> a écrit dans le message de
[email protected]...

| In my method
|
| Method<T>()
| {
| //... some stuff
| }
|
| How can I know the real type of T?

In addition to other answers, I would comment : if you need to know the real
type in a generic method, you don't need a generic method.

Clear, I'm just trying some things, no real context.

--





Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
 

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