public class Stuff
{
private int WriteOnly { set { } }
}
??????? Ctrl+Ins, Delegating members.
???????? ?????????? ???????????? ?????? ??? ???????? WriteOnly.
?? ??? ??? ??? ???????? ?????? ?? ??????, ?? ?????? ?? ????? ???? ???????.
public class Stuff
{
public int CompareTo(object value)
{
return WriteOnly.CompareTo(value); /* Property 'WriteOnly' has no getter */
}
private int WriteOnly { set { } }
}
????????????:
1)????????? ????????????? ??????? ??? write-only ???????.
2)????????? ??????? ? ?????? ??????? ? ???? ?? ??????? ? ???????????, ??????? ?????????????? ???????