Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Darcy Jones   on Aug 22 In Asp.net Category.

  
Question Answered By: Calais Bernard   on Aug 22

What you are trying to do is not really for overloading  (Which can be done
with VB.NET):

Overloading is for passing different types of parameters. what I think you
want to do is set the parameters via private variables within the class....

Eg:



Class yourClassName

Private m_first_name as string
Private m_last_name as string

Public Property first_name() As String
Get
Return m_first_name
End Get
Set (ByVal Value As String0
m_first_name = Value
' or do whatever you want here...
End Set
End Property


End Class

This gives you full control what to do when someone calls
yourClassName.first_name = 'whatever'.

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Operator Overloading in VB.Net Or get search suggestion and latest updates.


Tagged: