Pass a c# object of type HashTable as argument
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).
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
.
精彩评论