Readonly Property در C#.Net

public class MyClass
{
    public MyClass(string readOnlyProperty)
    {
        this._readOnlyProperty = readOnlyProperty;
    }

    private string _readOnlyProperty;
    public string ReadOnlyProperty { get { return _readOnlyProperty; } }
}

 

ادامه مطلب


  • 1
  • 1