RadicalFx / Radical

Radical is an infrastructure framework whose primary role is to help in the development of composite WPF applications based on the Model View ViewModel pattern.
http://www.radicalframework.com/
MIT License
38 stars 3 forks source link

Improve Radical properties via Roslyn #244

Open mauroservienti opened 7 years ago

mauroservienti commented 7 years ago

e.g. by doing:

class Person : Entity
{
   [RadicalProperty]
   public String Name
   {
      get;
      set;
   }
}

that at compile time is automatically translated to:

class Person : Entity
{
   [RadicalProperty]
   public String Name
   {
      get { return this.GetPropertyValue(() => this.Name); }
      set { this.SetPropertyValue(() => this.Name, value); }
   }
}
nazarenomanco commented 7 years ago

+1 Radical Properties are the most common feature used... so if we "cut" the number of needed LOC is good also for the readability of the code, and moving from a not Radical VM will be more easy.

micdenny commented 7 years ago

👍 but how it works? you should install an extension?

mauroservienti commented 7 years ago

Roslyn stuff can be shipped in a nuget package, Compiler will pick it up.

micdenny commented 7 years ago

Roslyn stuff can be shipped in a nuget package, Compiler will pick it up.

great then! 👍 👍