None <vi********@gmail.com> wrote:
Is it possible to pass an Interface object as an argument to some
function. If anybody knows the solution please let me know.
If you mean "Is it possible to write a method which takes an interface
type as the type of one of its parameters?" then - absolutely. It's a
very common part of good design. Look at ArrayList.Sort, for example -
a couple of its overloads take an IComparer to use during the sort.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too