Welcome to MSDN Blogs Sign in | Join | Help

September 2007 - Posts

Non-virtual calls to virtual methods

C# compiler is known to emit virtual calls for non-virtual methods (callvirt instead of call IL instruction, maybe that be the topic of my next post). However, sometimes it's forced to do the exact opposite Consider the following code class B { public
Posted by abhinaba | 3 Comments
Filed under:

Unions in C#

Usage of unions in the native world is pretty common. However, the same is not true for the .NET world. However, while using interop sometimes you need to fiddle around this these. In C# you go about defining unions using the Explicit layout supported
Posted by abhinaba | 2 Comments
Filed under:

Maintained by Microsoft

Saw this on the side of a road in my recent trip to Bangalore. Sorry for the quality though, I took it from a moving Bike and that too in very bad light.
Posted by abhinaba | 1 Comments
Filed under:

Cool new C# syntactic sugar

Just the other day I ranted about all the explicit get; set; implementation and I found this out today. I was reviewing some code and I saw something like this class MyClass { public int Property { get ; set ; } } class Program { static void Main( string
Posted by abhinaba | 10 Comments
Filed under:

Coding conventions

<rant> Most of the coding convention I've seen being used by SW houses seems to promote wastage of lines. I suspect that since in many cases code size is measured in LOC it actually helps quoting a larger number. E.g. I start getting a tad irritated
Posted by abhinaba | 13 Comments
 
Page view tracker