devi studiare ehhhehehe
codice:
string _str;
public string miaproprietà
{
  get
  {
    return str;
  }
  set
  {
    str = value;
  }
}
da una qualsiasi funzione puoi fare cosi:

strin myvar = miaproprietà()

o

miaporprietà = ciao;