Suggestion: property and event setting block attached to C# type instance
Instead of having to write in C# speechRecognizer = CreateSpeechRecognizer(); if (speechRecognizer != null) { speechRecognizer.SomeProperty = someValue; speechRecognizer.SomeOtherProperty = someOtherValue; speechRecognizer.SpeechRecognized += SpeechRecognized; speechRecognizer.SpeechHypothesized += SpeechHypothesized; speechRecognizer.SpeechRecognitionRejected += SpeechRecognitionRejected; } I’d prefer to write: speechRecognizer = CreateSpeechRecognizer() { SomeProperty = someValue, SomeOtherProperty […]