Both methods below give the same result, what is the reason you would use one of the other.
I'm struggling to figure out what the subtle differences are between using a String Function over using a Read Only Property.
Method 1
Public Function GetUserName() as String
Return "foobar"
End Function
Method 2
Public ReadOnly Property UserName() as String
Get
Return "foobar"
End Get
End Property