Xpo Properties for Strongly Typed freaks!!!

Έχουν δημοσιευτεί 16 Ιουνίου 09 05:03 μμ | tolisss 
Because XPbaseObject implements INotifyPropertyChanged property setters need to be implemented using a special way like public   string Name {     get     {         return name;     }     set     {         SetPropertyValue( "Name" , ref name, value);     } } but if you are a strongly typed fun like me the you certainly will not like the string representation of the “Name” as a parameter of SetPropertyValue because if you rename the property then you should explicitly rename the string parameter as well. I used to write my properties like private   string nameWithReflection; public  

Διαβάστε περισσότερα »

Δημοσίευση στην κατηγορία: , ,

Σχόλια:

Χωρίς Σχόλια
Έχει απενεργοποιηθεί η προσθήκη σχολίων από ανώνυμα μέλη

Search

Go

Το Ιστολόγιο

Ιστορικό Δημοσιεύσεων

Συνδρομές