Answer the question
In order to leave comments, you need to log in
Is it possible to make a call to a protection variable private via get; set?
Good evening, the question arose whether it is possible to call a private protection variable in this way? Or is the call only possible with public protection?
private string name { get; set; }
Answer the question
In order to leave comments, you need to log in
if you need to limit the record, then it's better like this:
public string Name { get; private set; }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question