|
-
May 5th, 2002, 02:03 PM
#1
Thread Starter
New Member
Overload properties
Hi all,
I've got a problem overloading properties and I don't know why!
If I need the same property with different arguments VB.NET let me do
1)
Public Property A() As Integer
Public Property A(ByVal b As Boolean) As Integer
Public Property A(ByVal c As String) As Integer
2)
Public Override Property A() As Integer
Public Override Property A(ByVal b As Boolean) As Integer
Public Override Property A(ByVal c As String) As Integer
These two syntaxes are the same?
Why if I call Class1.A() from a C# code sometimes I get just A() or A(b) or A(c), sometimes A(), A(b) and A(c) (how I expect!) and sometimes I must call the internal name get_A()/set_A(), get_A(b)/set_A(b)...
This is too strange to me!
Cya
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
|