Jaa


I know the answer (it's 42)

A blog on coding, .NET, .NET Compact Framework and life in general....

C#: Fast string comparison optimization

Sometime back I had blogged about using reference comparison to speed up ordinal string comparisons....

Author: Abhinaba Basu [MSFT] Date: 01/06/2006

Mixins and C#

In one of my previous lives when I first heard about mixin and tried to look it up I hit into...

Author: Abhinaba Basu [MSFT] Date: 01/06/2006

Its not a good idea to use Console colors too much

With Whidbey (VS2005) managed Console based applications have got a boost with new additions to the...

Author: Abhinaba Basu [MSFT] Date: 01/05/2006

C# 2.0: Protected member access and generics

Some time back I had posted about why protected member of a base class cannot be directly called...

Author: Abhinaba Basu [MSFT] Date: 01/04/2006

Stroustrup talks on V-Next of C++. Do they apply to C#?

For a long time I am out of touch with the C++ world. Amit pointed me to the paper A Brief Look at...

Author: Abhinaba Basu [MSFT] Date: 01/03/2006

snooping into TeamSystem activity logging

Brian Harry had blogged before on how we are using the activity logging on our Team System data-tier...

Author: Abhinaba Basu [MSFT] Date: 12/27/2005

Team Build RSS Feed

<Update: After some complains that it is difficult to cut paste code out of the blog, I have...

Author: Abhinaba Basu [MSFT] Date: 12/21/2005

C#: Did if( a = b) lose its sting

One of the common typo of using if (a = b) in place of if (a == b) gave a lot of grief to...

Author: Abhinaba Basu [MSFT] Date: 12/19/2005

C#2.0: Nullable types, lifted operators and some compare weirdness

Recently I was stumped on some weird comparisons and I promised myself I'd do some investigations. I...

Author: Abhinaba Basu [MSFT] Date: 12/14/2005

What do we work on here in Microsoft India

Frequently I have been asked the question, what kind of work is done in Microsoft India or MIDC? The...

Author: Abhinaba Basu [MSFT] Date: 12/13/2005

C# 2.0: Generics, default(T) and compare to null weirdness

<Added additional stuff after a discussion on internal CSharp user list> I was going through...

Author: Abhinaba Basu [MSFT] Date: 12/10/2005

C#: if sealed is supported then why not singleton

As I had said in my previous blog "Usefulness of a new feature is best understood if you try to...

Author: Abhinaba Basu [MSFT] Date: 12/07/2005

Developers are Super-hero

Bill Gates is coming to India for the launch of Visual Studio 2005, SQL Server 2005 and Biztalk. To...

Author: Abhinaba Basu [MSFT] Date: 12/01/2005

C# 2.0: life was a bit more difficult without Static classes

Usefulness of a new feature is best understood if you try to implement something that the feature...

Author: Abhinaba Basu [MSFT] Date: 12/01/2005

C# 2.0: Using different versions of the same dll in one application

Lot of things have become really easy to do in C#2.0. I needed to load 2 versions of the same class...

Author: Abhinaba Basu [MSFT] Date: 11/30/2005

C# 2.0: no more lexer blues with nested templates

When generics got announced and I laid my hands on the C#2.0 compiler the first thing I tried is...

Author: Abhinaba Basu [MSFT] Date: 11/28/2005

C#: PG required, obscene case fall through code and Duff device

I had said before that I miss case fall through in C# and I promised that I'd write about some weird...

Author: Abhinaba Basu [MSFT] Date: 11/23/2005

C# : I hate commented out code

Even though retaining commented lines of code in your source-base is not a good thing, it's a fact...

Author: Abhinaba Basu [MSFT] Date: 11/22/2005

TeamBuild: Scheduled build using Team System

Sorry to all the folks who read my blog for C#. This ones about Team System and specifically about...

Author: Abhinaba Basu [MSFT] Date: 11/21/2005

C#: I miss case fall through

We all have heard time and again that the default case fall through is not good (as in C/C++) and C#...

Author: Abhinaba Basu [MSFT] Date: 11/15/2005

C# 2.0: Loading plugins at run-time using late binding

I was working on a home project for creating a motion-detector that works using a webcam. Instead of...

Author: Abhinaba Basu [MSFT] Date: 11/14/2005

Whoami

I am a Software Developer working on the .NET Compact Framework team. My interests include OOPS,...

Author: Abhinaba Basu [MSFT] Date: 11/11/2005

C# 2.0: get and set accessor can have different accessibility

One of the issues with properties in C#1.x is that the get and the set accessors get the same...

Author: Abhinaba Basu [MSFT] Date: 11/10/2005

C#: Why I cannot call protected method from derived class

Someone posted a comment in the internal alias on protected member access. The question is that the...

Author: Abhinaba Basu [MSFT] Date: 11/10/2005

C#: Uninitialized instance variables

int i;Console.WriteLine(i); The above code will fail to compile. This is because the C# compiler...

Author: Abhinaba Basu [MSFT] Date: 11/08/2005

C#: Linked by the great Raymond Chen

So I won an Oscar too :) and was honored with a link from Raymond Chen. Sometime back I posted on...

Author: Abhinaba Basu [MSFT] Date: 11/08/2005

C# 2.0: The all new ?? operator

Thanks to James Manning's blog I remembered the new ?? operator introduced in C#2.0 and that very...

Author: Abhinaba Basu [MSFT] Date: 11/03/2005

C# 2.0: Fast string comparison with string-interning

<Also read the later posting on the same topic> Frequently in code we do string comparisons...

Author: Abhinaba Basu [MSFT] Date: 11/02/2005

Secret unveiled : Why is the Whidbey release numbered 8.0.50727.42

The versioning scheme is 8.0.YMMDD.NN and that explains 8.0.50727. The mystery is with the build...

Author: Abhinaba Basu [MSFT] Date: 10/28/2005

C#: String comparison guidelines and common usage

The recommendation for string comparison has been updated for Whidbey (Visual Studio 2005) and there...

Author: Abhinaba Basu [MSFT] Date: 10/28/2005

VS 2005 is out!!!!

The final word is out!!! This is a great time indeed for most developers out there, Visual Studio...

Author: Abhinaba Basu [MSFT] Date: 10/27/2005

C# : Where do you define an enum

Frequently while designing classes that have methods which accept enums as parameters, a common...

Author: Abhinaba Basu [MSFT] Date: 10/24/2005

C# 3.0 : using extension methods for enum ToString

In my previous blog I was trying to address the issue that when ToString is called on an enum the...

Author: Abhinaba Basu [MSFT] Date: 10/21/2005

C# : Enum and overriding ToString on it

I saw two posts on Enums today on Eric Lipperts and Chris Rathjen's blog. Enums are significantly...

Author: Abhinaba Basu [MSFT] Date: 10/20/2005

C#: Anonymous methods are not closures

<Edit: See the extended discussion at the end of which I conclude Anonymous methods are indeed...

Author: Abhinaba Basu [MSFT] Date: 10/18/2005

Ruby: Webserver in 70 lines of code

<Updated the sources to add logging and default file index.html handling. Now the code is about...

Author: Abhinaba Basu [MSFT] Date: 10/14/2005

C#: Comparison operator overloading and spaceship operator

Lets consider I have a class Employee which has Name and JobGrade fields. I want to overload the...

Author: Abhinaba Basu [MSFT] Date: 10/11/2005

C#: How about borrowing some Ruby conditional expressions

After using Ruby for some time I have become quiet attached to its conditional statement syntax. In...

Author: Abhinaba Basu [MSFT] Date: 10/10/2005

C#: Fun with #line directive

#line pre-processor directive, though not commonly used is very interesting. This directive makes...

Author: Abhinaba Basu [MSFT] Date: 10/10/2005

C#: CIL supports overloading by return type

C# and most other languages that allow method overloading do not allow overloading by return type....

Author: Abhinaba Basu [MSFT] Date: 10/07/2005

C#: structs and Interface

The fact that a struct can implement an interface is well known and so is the fact that casting a...

Author: Abhinaba Basu [MSFT] Date: 10/05/2005

C#: try and retry

In many situation when something fails (exception is thrown) in the try block you want to retry that...

Author: Abhinaba Basu [MSFT] Date: 10/01/2005

<Previous Next>