Welcome to MSDN Blogs Sign in | Join | Help

September 2007 - Posts

Posting from word

I was cutting and pasting from word till now to post. It was long in my list to try and use word and see how that works and it works great. Column1 Column2 Column3 Row2 Row2 Row2 I look forward to using this.

Why is generic constructor not allowed?

Generic argument is not allowed in the constructor. When I compile the code below I get a compilation error saying: error CS1519: Invalid token '(' in class, struct, or interface member declaration The reason is simple. You can have a class Foo<T>

Same name for a generic and non-generic class

I was writing a sample to do something and I noticed that when I declare and instantiate a generic class, I had to pass the generic type in two places: 1. Foo<Int32> fooGenericInstance; 2. FooGenericInstance = new Foo<Int32>(); First I was
 
Page view tracker