开发者

Pass a c# object of type HashTable as argument

开发者 https://www.devze.com 2022-12-19 18:49 出处:网络
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 n

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号