Better Software Through Simpler Code

Eradicate boilerplate. Raise abstraction. Enforce good design.

Your Code With PostSharp

[NotifyPropertyChanged]  
public class Person  
public string FirstName { get; set; } 
public string LastName { get; set; } 
 
public string FullName  
{  
get { return this.FirstName + " " + this.LastName; } 

Your Code Without PostSharp

public class Person : INotifyPropertyChanged  
private string firstName;  
private string lastName;  
 
public event PropertyChangedEventHandler PropertyChanged;  
 
protected virtual void OnPropertyChanged(string propertyName)  
{  
if ( this.PropertyChanged != null )  
{  
this.PropertyChanged( this,  
new PropertyChangedEventArgs(propertyName) );  
}  
}  
 
 
public string FirstName  
{ 
get { return this.firstName; }  
set  
{  
if ( this.firstName != value ) 
{  
this.firstName = value;  
this.OnPropertyChanged("FirstName");  
this.OnPropertyChanged("FullName");  
}  
}  
}  
 
public string LastName  
{  
get { return this.lastName; } 
set  
if ( this.lastName != value ) 
this.lastName = value; 
this.OnPropertyChanged("LastName"); 
this.OnPropertyChanged("FullName"); 
 
public string FullName  
{  
get { return this.FirstName + " " + this.LastName; } 



Customers



Testimonials

Download PostSharp

Install PostSharp from Visual Studio Gallery. A single download includes all features of all editions.
After the 45-day trial, you can choose to buy the product or to stay with the free PostSharp Express.