Click here to Skip to main content
11,434,695 members (59,547 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Passing an object to a generic method

, 19 Apr 2012 CPOL
Hi,I presume you want to pass the type using the Generics syntax. If so, you can pass it using something like this:Int32 iObj=0;method(iObj);or Stack sObj = new Stack();method(sObj);I'm not sure if your point is another mean of sending type to the 'method'...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 20-Apr-12 3:34 Available Reza Ahmadi
1 No 20-Apr-12 3:33 Available Reza Ahmadi

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Reza Ahmadi
Software Developer (Senior) DPKhttps://www.codeproject.com/script/Membership/M
Finland Finland
I have worked in many companies holding different positions like Software Developer, Technical Manager and R&D.

I love coding with .NET, and I love applying new techniques and technologies into my work.

Currently studying Ms. Software Development in UTA, Finland and working as a Web Application Developer.

Certificates:
MCTS (Microsoft Technology Specialist)
MCPD (Microsoft Professional Developer)

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150428.2 | Last Updated 20 Apr 2012
Article Copyright 2012 by Reza Ahmadi
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid