Click here to Skip to main content
13,257,667 members (71,547 online)
Click here to Skip to main content

Tagged as


Posted 19 Apr 2012

Passing an object to a generic method

, 19 Apr 2012
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'...



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


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


About the Author

Reza Ahmadi
Software Developer (Senior) DPK
Canada Canada
I am programmer and I love coding using C#, C++, and JavaScript. Smile | :)

You may also be interested in...

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