12/15/2011 - Using anonymous method to subscribe to an event
While subscribing to any event much easier not create a separate handler method, but use anonymous method like this example: Button.Click += new EventHandler((obj, args) => { }); Code much more readable, in my opinion. For example, we want create … Continue reading
12/14/2011 - Subscribing to events inside a loop to using lambda expression
The following is the piece of code from our project in LS(LightSwich) environment; partial void LanguagesEditableGrid_InitializeDataWorkspace(List saveChangesTo) { // Write your code here. foreach (INotifyPropertyChanged language in Languages) { Microsoft.LightSwitch.Threading.Dispatchers.Main.BeginInvoke(() => { language.PropertyChanged += new PropertyChangedEventHandler(language_PropertyChanged); }); } } void … Continue reading
12/8/2011 - WCF Standards recomendations
The purpose of this paper is to present a recommendation to Integration Services architecture (Web Services). The article will address the constraints and requirements are listed and provide a full and comprehensive response to the demands, while addressing the following … Continue reading