我正在尝试将一些非常古老的 VB 代码重写到 C# 中。 有一个函数如下:
Function function1 (ByVal sp As String, Optional ByVal param(,) As Object = Nothing) As DataSet
还有一条评论:
//<param name="param">Parameters to pass to stored procedure</param>.
谁能告诉我如何将 param(,) 重写到 C# 中?谢谢!
最佳答案
Function function1 (ByVal sp As String, Optional ByVal param(,) As Object = Nothing) As DataSet
End Function
转换为:
public DataSet function1(string sp, object[,] param = null)
{
}
关于c# - VB param ( , ) 中的奇怪参数转换为 C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41756532/