Posted by: thankeshwor September 2, 2020
Login in to Rate this Post:
0
?
consider an example :
public class MyClass {
private int myProperty;
public void setMyProperty(int value) {
myProperty = value;
}
public int getMyProperty() {
return myProperty;
}
}
This is the same thing in C#:
public class MyClass {
public int MyProperty {get; set;}
}