|
-
Sep 28th, 2005, 01:33 PM
#1
Thread Starter
Frenzied Member
Method naming
Hey,
I have a class that is inheriting from DictionaryBase.
I have the following 2 methods in the class
VB Code:
Friend Overloads Sub Remove(ByVal item As Schedule)
MyBase.Dictionary.Remove(item.ID)
End Sub
Friend Overloads Sub Remove(ByVal ID As Integer)
MyBase.Dictionary.Remove(ID)
End Sub
However when I run the code, it never calls these 2 methods. If I try to go to the definition from the line of code that is calling the remove method, it brings up the object browser.
Can I not name my methods Remove?
Thanks,
Don't anthropomorphize computers -- they hate it
-
Sep 28th, 2005, 02:50 PM
#2
Fanatic Member
Re: Method naming
I think your methods should be Public instead of Friend
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Sep 28th, 2005, 02:51 PM
#3
Thread Starter
Frenzied Member
Re: Method naming
Yes, I figured that out as well.
Thanks.
Don't anthropomorphize computers -- they hate it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|