October 21, 2004

C#/CLR Quiz

Recently I have been writing a managed interface to metadata and found several interesting things which I didn't know before. One of these things can be easily demonstrated with C# code, so I decided to make a quiz (just like Brad Abrams does) Consider the following code snipplets:
1)
using System;

class CustomAttribute : Attribute
{
	public CustomAttribute( string s )
	{
	}
}

[Custom(null)]
class C
{
	
}
================================================
2)
using System;

class CustomAttribute : Attribute
{
	public CustomAttribute( object s )
	{
	}
}

[Custom(null)]
class C
{
	
}
=============================================
3)
using System;

class CustomAttribute : Attribute
{
	public CustomAttribute( object[] s )
	{
	}
}

[Custom(null)]
class C
{
	
}
Exactly one of them doesn't comple. Which one is it and why it doesn't compile?
Posted by Oleg Stepanov at 04:07 PM | Comments (106) | TrackBack

October 13, 2004

Hello

Hi, my name is Oleg Stepanov and I'm developer at the ReSharper team. For 1.0 I worked on refactorings and different codeinsight stuff like code completion, live templates, etc. For the current version I primarily work on debugger, so part of my posts here will be related to .NET internals stuff like CLR and metadata.

I also take part in the MPS project (read more in JetBrains CEO Sergey Dmitirev interview to Code Generation Network). Particularly I lead development of DSL for using collections (aka containers). Maybe I will blog something on this too.

I seem to be the second blogger on the blogs.jetbrains.com site (the first is Dmitry Jemerov, the Omea project lead), but I hope as well as Dmitry that you'll see more JetBrains guys here soon.

Posted by Oleg Stepanov at 06:58 PM | Comments (129) | TrackBack