- Joined
- Oct 24, 2012
- Messages
- 6,545
Hello I have been using a lot of the get / set accessors.
I was wondering if it is possible to create your own accessors.
Example:
Anything like the above would be a great help.
I was wondering if it is possible to create your own accessors.
Example:
Code:
public float _Test = 0;
private float Test
{
get { return _Test; }
set { _Test = value; }
custom1 { // do actions }
custom2(int value) { // do actions }
}
Anything like the above would be a great help.