Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » DevCenter   (RSS)
Sorry, but there are no more tags available to filter with.

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 | 4 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 | 15 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 | 1 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 | 8 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:

How to map a Visual Studio macro to a keyboard shortcut?

The complete answer is here: http://msdn.microsoft.com/en-us/library/a0003t62.aspx Excerpt: Choose Options on the Tools menu to display the Options dialog box. In the Environment folder, click Keyboard. In the Show commands containing box, type "macros."
Posted by Kirill Osenkov | 2 Comments
Filed under:

Coding productivity: macros, shortcuts and snippets

Visual Studio macros are a fantastic productivity booster, which is often under-estimated. It's so easy to record a macro for your repetitive action and then just play it back. Even better, map a macro to a keyboard shortcut. I'll share a couple of examples.
Posted by Kirill Osenkov | 17 Comments
Filed under:

Did you know? Delegates to extension methods

I didn't know about this until recently: You can take a delegate to an extension method as if it was an instance method: http://csharpindepth.com/ViewNote.aspx?NoteID=92 The delegate's target will be set to the instance. Nice!
Posted by Kirill Osenkov | 2 Comments
Filed under:

Using delegates - a simple sample

A while ago Charlie Calvert did a great job explaining delegates here . Readers were asking for more samples that would demonstrate the benefits of delegates. After a lot of hard thinking (somehow it's hard to find an easy sample!) I've come up with a
Posted by Kirill Osenkov | 1 Comments
Filed under:

How to: override static methods

I know, I know. You can't override static methods. The title was just a trick to provoke your interest :-) In this post, I'll first try to explain why it is impossible to override static methods and then provide two common ways to do it. Or rather - two
Posted by Kirill Osenkov | 6 Comments
Filed under:
 
Page view tracker