views:

191

answers:

1

Is it possible (in C#) to pass an object of type HashTable as a parameter to a method?

I'm trying to, but it seems (at debug-time) impossible to reference the object (i'm getting a null reference object).

+3  A: 

Is it possible (in C#) to pass an object of type HashTable as a parameter to a method?

It is possible.

public void MyMethod(HashTable ht) {

(i'm getting a null reference object).

This is probably because you're passing null.

Anon.