您好,您可以将此代码更改为C# [英] hi can u change this code to c#

查看:68
本文介绍了您好,您可以将此代码更改为C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim hashedDataBytes As Byte()


您好,您可以将其更改为c#..


hi can u change this to c#..

推荐答案

在线转换器


Online Convertors



  • www.developerfusion.com
  • www.carlosag.net
  • www.telerik.com
  • www.all4dotnet.com



//回答最新问题(V2)//
您需要将对象强制转换为int例如
EDIT 2:
// Answer for newest question (V2) //
You need to cast the object to an int for example
int iResults = (int)cmd.ExecuteScalar();


应该做的把戏


//在编辑之前回答第一个问题//
此代码


should do the trick


// Answer for first question before edit //
this code

Dim hashedBytes As Byte()



在C#中将是



in C# would be

byte[] hashedBytes;




然后,您当然需要初始化数组.例如




You would then of course need to initialize the array. For example

byte[] hashedBytes = new byte[128];


为您提供解决方案....

byte [] hashedDataBytes = null;
Giving solution Helfful for u....

byte[] hashedDataBytes = null;


这篇关于您好,您可以将此代码更改为C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆