using System;
public class Test
{
public static void Main()
{
MinhaClasse mc = new MinhaClasse();
mc.UmMetodoPublicoQualquer();
}
}
public class MinhaClasse
{
public string PropriedadeDeMinhaClasse { get; private set; }
private void UmMetodoPrivadoQualquer ( )
{
this.PropriedadeDeMinhaClasse = "valor";
}
public void UmMetodoPublicoQualquer ( )
{
this.UmMetodoPrivadoQualquer();
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCU1pbmhhQ2xhc3NlIG1jID0gbmV3IE1pbmhhQ2xhc3NlKCk7CgkJbWMuVW1NZXRvZG9QdWJsaWNvUXVhbHF1ZXIoKTsKCX0KCQoJCn0KCnB1YmxpYyBjbGFzcyBNaW5oYUNsYXNzZQp7CiAgICBwdWJsaWMgc3RyaW5nIFByb3ByaWVkYWRlRGVNaW5oYUNsYXNzZSB7IGdldDsgcHJpdmF0ZSBzZXQ7IH0KCiAgICBwcml2YXRlIHZvaWQgVW1NZXRvZG9Qcml2YWRvUXVhbHF1ZXIgKCApCiAgICB7CiAgICAgICAgdGhpcy5Qcm9wcmllZGFkZURlTWluaGFDbGFzc2UgPSAidmFsb3IiOwogICAgfQogICAgCiAgICBwdWJsaWMgdm9pZCBVbU1ldG9kb1B1YmxpY29RdWFscXVlciAoICkKICAgIHsKICAgIAl0aGlzLlVtTWV0b2RvUHJpdmFkb1F1YWxxdWVyKCk7CQogICAgfQp9