Click here to Skip to main content
12,395,871 members (63,867 online)
Click here to Skip to main content

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'...



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


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...

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