Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Radical properties via Roslyn #244

Open
mauroservienti opened this issue Feb 25, 2017 · 4 comments
Open

Improve Radical properties via Roslyn #244

mauroservienti opened this issue Feb 25, 2017 · 4 comments
Labels

Comments

@mauroservienti
Copy link
Member

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
Copy link
Member

+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
Copy link
Member

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

@mauroservienti
Copy link
Member Author

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

@micdenny
Copy link
Member

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

great then! 👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants