Adding hidebysig

  • Thread starter Thread starter Keith Patrick
  • Start date Start date
K

Keith Patrick

How does one declare a method to be "hidebysig"? I am trying to make some
type-specific collections, mirroring
System.Window.Forms.Control.ControlCollection, but I cannot figure out how
to get past the requirements of IList. For instance, if I implement IList,
I must have:
public void Add(Object item)

but I can't figure out how to hide it with
public void Add(Subclass Item)

using ildasm, I see that ControlCollection gets around it by having the
following signature:
public hidebysig newslot virtual

but I can't figure out how to set those middle two.
 

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