¡@

Home 

c# Programming Glossary: myotherproperty

Unit testing that an event is raised in C#

http://stackoverflow.com/questions/248989/unit-testing-that-an-event-is-raised-in-c-sharp

value _myProperty value NotifyPropertyChanged MyProperty MyOtherProperty SomeValue public string MyOtherProperty set if _myOtherProperty.. MyProperty MyOtherProperty SomeValue public string MyOtherProperty set if _myOtherProperty value _myOtherProperty value NotifyPropertyChanged.. value _myOtherProperty value NotifyPropertyChanged MyOtherProperty My test for the event fails the event that it captures is the..

Why use generic constraints in C#

http://stackoverflow.com/questions/4073852/why-use-generic-constraints-in-c-sharp

public class MySomething ISomething public string MyOtherProperty get set Now if we use the first generic example we could have.. MyClass MySomething Console.WriteLine myClass.MyProperty.MyOtherProperty On the other hand if we used the second example we wouldn't.. we used the second example we wouldn't be able to access MyOtherProperty since it's only known to be an ISomething MyClass myClass new..