Silverlight 1.1 UserControl C# template code does not follow best practices

Why does the Microsoft Visual Studio team not follow the best practices internally? When creating a Silverlight 1.1 UserControl under Visual Studio 2008 Beta 2 it generates the following code by default. System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream(“Project1.UserControl1.xaml”); this.InitializeFromXaml(new System.IO.StreamReader(s).ReadToEnd()); Most developers would realise that this is not good code. Why do I say this, well firstly … Continue reading Silverlight 1.1 UserControl C# template code does not follow best practices