Results 1 to 5 of 5

Thread: [Resolved] Overriding...

Threaded View

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    [Resolved] Overriding...

    Let's say I want to inherit Hashtable, and restrict it to allow only strings. I have this...

    Code:
    	public class Class1:Hashtable
    	{
    		public Class1() {}
    
    		public override void Add(string key, string value)
    		{
    		}
     
    	}
    Which works great in VB (when converted to VB syntax, that is) but in C# I get "no suitable method found to override".

    What am I missing?

    Last edited by crptcblade; Oct 17th, 2003 at 10:09 AM.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width