请教高手 就几行vb.net 代码翻译成 c#代码 红色那条代码不知道如何改写 Public Function Delete(ByVal cGradeBaseType As String, ByVal cCode As String, ByRef err As String) As ExecResult
Try
DAL.Base.GradeBase.GradeBase.Create.Delete(cGradeBaseType, cCode)
Catch ex As Exception
Err = ex.Message Delete = ExecResult.Fail
End Try
End Function
分享到:更多
------解决方案--------------------
因为你没有给出枚举中的项,我没法写默认值,你自己给个默认值就行了。
ExecResult ret = ExecResult.xxxx;