阅读背景:

如何在C#中接受任何类型的数字作为参数?

来源:互联网 

c#: How do I accept any kind of number into a function as an argument? Currently my AddDataInt32() asks specifically for Int32, but how I can accept any number, byte, ints signed or unsigned, so I can pass it on to BitConverter.GetBytes()? It's seems silly to write same funct's for each type :(c#: How do I accept any kind of number into a f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: