Hi again and again and again!
I would like to have methods that behave like ToString:
Let's say I have a structure or class that has some properties like 'Name' and 'Value'. How would I implement some methods like this:
Is there a way to achieve this? I know I can do it this way:
But I was wondering if there's any way to do this like the first example.
Any ideas awesome guys?
I would like to have methods that behave like ToString:
Let's say I have a structure or class that has some properties like 'Name' and 'Value'. How would I implement some methods like this:
Code:
MyStructure.Name.MYOWNMETHOD1
MyStructure.Value.MYOWNMETHOD2
Is there a way to achieve this? I know I can do it this way:
Code:
MyStructure.Name = MYOWNMETHOD1("Hello")
But I was wondering if there's any way to do this like the first example.
Any ideas awesome guys?