Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » DevCenter   (RSS)

Visual Studio 2010 Beta 2 Known Issues – Part 2

This post continues my unofficial list of known issues in VS 2010 Beta 2 ( see Part 1 ). As we continue getting Beta 2 feedback and investigating issues, it's time for another update on the issues we've been seeing. Please keep in mind that due to the
Posted by Kirill Osenkov | 9 Comments
Filed under: ,

Saving images (.bmp, .png, etc) in WPF/Silverlight

I’ve recently added a new feature to Live Geometry that allows users to save the current drawing as a bitmap or a .png file. Just push the save button and pick the desired image format in the Save dialog: Fortunately, both WPF and Silverlight support

First videos of the structured editor prototype

Disclaimer: the structured editor work described in my posts is unrelated to my work at Microsoft. Everything shown is my personal research done as part of my MSc thesis during 2004-2007. Also, it’s not ready for real use and does not cover all the features

UI without code or XAML: PropertyGrid, DataForm, etc.

WPF has certainly advanced the state-of-the-art in programming the UI. I personally think that WPF and Silverlight remove all the limits that existed to UI development in the past. The only limit now is your imagination. XAML is there for declarative

Calling new on an interface

Interesting thing: technically there is a way to call new on an interface to create an object. How? Using a feature in the C# compiler for COM-interop support: using System.Runtime.InteropServices; class Program { static void Main( string [] args) { IFoo
Posted by Kirill Osenkov | 10 Comments
Filed under: ,

Samples for the Undo Framework

I just added some samples for the Undo Framework . You can find the samples in the source code or download them from the project website. MinimalSample First is a simple Console App sample called MinimalSample. Here’s the full source code: using System;
Posted by Kirill Osenkov | 6 Comments
Filed under: ,

yield return and Continuation-Passing Style

Someone was recently porting some C# code to VB and had a question about how to convert the C# yield return iterator methods to VB (VB currently doesn’t support iterators). There were a lot of replies like “use Reflector on a compiled binary and copy-paste
Posted by Kirill Osenkov | 5 Comments
Filed under: ,

How to debug crashes and hangs

At my job on the C# IDE QA team I've learned some useful things about debugging in Visual Studio, which I'd like to summarize in this post. Although the screenshots were made using Visual Studio 2008 SP1, this pretty much applies to other versions of
Posted by Kirill Osenkov | 33 Comments
Filed under:

Representing dependencies in code

It is more often than you would suspect that people have to deal with some sort of dependencies in an application they're developing. In this post I'll talk about some common algorithms and data-structures to work with dependencies that might turn out
Posted by Kirill Osenkov | 5 Comments
Filed under: , ,

A curious subtlety about how CLR does interface dispatch on array types

This post is about some internal CLR magic that usually makes accessing .NET arrays through an interface up to 100 times faster (if you're an optimist; or accessing arrays up to 100 times slower in the worst case, if you're a pessimist). I'm usually very
Posted by Kirill Osenkov | 15 Comments
Filed under: ,

Live Geometry with Silverlight 2

I'm happy to announce a project I started on CodePlex: http://codeplex.com/DynamicGeometry Live preview at: http://geometry.osenkov.com Dynamic geometry In a nutshell, it's an interactive designer for ruler-and-compass constructions - it lets you plot
Posted by Kirill Osenkov | 23 Comments
Filed under: ,

MEF: Microsoft's Managed Extensibility Framework

Krzysztof Cwalina announced that Microsoft has released a CTP of its Managed Extensibility Framework (MEF) . MEF is basically a dependency injection framework that allows to provide extensibility for your applications (add-in/plug-in framework). Also,
Posted by Kirill Osenkov | 2 Comments
Filed under:

Testing

If you're interested in testing or would like to learn more about it, here are a couple of links: MSDN recently announced Tester Center: http://msdn.com/testercenter - this is a centralized resource about testing from Microsoft. Quote: "The Microsoft
Posted by Kirill Osenkov | 10 Comments
Filed under:

Algorithms in C#: Connected Component Labeling

I have to admit, I'm not very good at interviews. For some reason my mind isn't trained well for sorting linked lists or balancing binary trees on the whiteboard. I have no problem designing 600+ type hierarchies and building complex object-oriented frameworks,
Posted by Kirill Osenkov | 5 Comments
Filed under: ,

How to determine the .NET installation directory and CLR version

I recently discovered the System.Runtime.InteropServices. RuntimeEnvironment class, especially RuntimeEnvironment.GetRuntimeDirectory(). Also, RuntimeEnvironment.GetSystemVersion() gets the version of the CLR that is running the current process.
Posted by Kirill Osenkov | 0 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker