Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在C中将加密流和泛型传递给WebMethod#_C#_Asp.net_Web Services_Cryptography - Fatal编程技术网

C# 在C中将加密流和泛型传递给WebMethod#

C# 在C中将加密流和泛型传递给WebMethod#,c#,asp.net,web-services,cryptography,C#,Asp.net,Web Services,Cryptography,我有以下变量的数据 CryptoStream searialNumber = encryptedSearialNumber; Dictionary<string, object> x= userInput; Dictionary<string, object> y= hardwareInfo; CryptoStream searialNumber=encryptedSearialNumber; 字典x=用户输入; 字典y=硬件信息; 我想将这些作为参数传递给ASP.N

我有以下变量的数据

CryptoStream searialNumber = encryptedSearialNumber;
Dictionary<string, object> x= userInput;
Dictionary<string, object> y= hardwareInfo;
CryptoStream searialNumber=encryptedSearialNumber;
字典x=用户输入;
字典y=硬件信息;
我想将这些作为参数传递给ASP.NET XML(asmx)web服务的
WebMethod
。我知道如果不将这些参数更改为适当的数据类型,我就无法传递这些参数。因为它们无法序列化


有谁能建议一种标准的方法将这些参数传递给web方法吗?

我想知道为什么这个问题只被浏览了33次。我肯定至少有20次我点击了这个问题,以确定是否有人回答了。我的问题有什么问题吗?我用不同的方法解决了这个问题


加密流更改为bytes
并将其传递给
MemoryStrem
还创建了
自定义序列化类
以替换字典并将其传递给web方法。

您自己的单击可能不计入视图。或者至少不会超过一次。