Skip to content

Instantly share code, notes, and snippets.

Created Jul 26, 2013

What would you like to do?
/* long-hand */
public class MyClass
string _myString;
public string MyString
get { return _myString; }
set { _myString = value; }
/* short-hand */
public class MyClass
public string MyString { get; set; }
class MyClass:
def __init__(self):
self._myString = None
def myString(self):
return self._myString
def set_myString(self, value):
self._myString = value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.