Difference between CSLA getproperty, setproperty and shared recipients and setters

I am new to C #, csla and NHibernate. This may be a newbie, but I have not seen a clear explanation elsewhere. Can someone please help me understand what is the difference between

   public int Property
    {
        get { return GetProperty<int>(Property); }
        private set { SetProperty<int>(Property, value); }
    }

and

public int Property{get;set;}
+4
source share
2 answers

CSLA implements a powerful new way to implement properties where you do not need to declare a field to store the property value. Field values ​​are managed by CSLA.NET and are therefore called managed fields. In the future, some additional CSLA.NET features may not be available if you are not using managed fields.

Syntax:

public string Name
{
  get { return GetProperty<string>(NameProperty); }
  set { SetProperty<string>(NameProperty, value); }
}

CSLA , . , , , .

, GetProperty SetProperty

+2

GetProperty SetProperty - .

0

All Articles