本文介绍了将代码从VB.NET转换为C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 你可以转换这个代码是在c#.net中的vb.net吗? 谢谢 公共t1MenuScorrevole As 字符串 Public n1MenuScorrevole As Integer Public ndx1MenuScorrevole As span class =code-sdkkeyword> Single Public Sc​​rittaInseritaMenuScorrevole As String Public Sc​​rittaMenuScorrevole As String 如果Len(t1MenuScorrevole)= 0 那么t1MenuScorrevole =空格$( 18 ) n1MenuScorrevole = Len(ScrittaInseritaMenuScorrevole) ndx1MenuScorrevole =(ndx1MenuScorrevole Mod n1MenuScorrevole)+ 1 Mid $(t1MenuScorrevole, 1 , 18 )= Mid $(t1MenuScorrevole, 2 , 18 ) Mid $(t1MenuScorrevole, 18 , 1 )= Mid $(ScrittaInseritaMenuScorrevole,ndx1MenuScorrevole, 1 ) ScrittaMenuScorrevole = Mid(t1MenuScorrevole, 1 , 18 ) 我的尝试: a转换网站但运行不正确 谢谢解决方案 ( 18 ) n1MenuScorrevole = Len(ScrittaInseritaMenuScorrevole) ndx1MenuScorrevole =(ndx1MenuScorrevole Mod n1MenuScorrevole)+ 1 Mid (t1MenuScorrevole, 1 , 18 )= Mid (t1MenuScorrevole, 2 , 18 ) Mid can you convert this code is in vb.net in c#.net?thank you Public t1MenuScorrevole As StringPublic n1MenuScorrevole As IntegerPublic ndx1MenuScorrevole As SinglePublic ScrittaInseritaMenuScorrevole As StringPublic ScrittaMenuScorrevole As StringIf Len(t1MenuScorrevole) = 0 Then t1MenuScorrevole = Space$(18) n1MenuScorrevole = Len(ScrittaInseritaMenuScorrevole) ndx1MenuScorrevole = (ndx1MenuScorrevole Mod n1MenuScorrevole) + 1 Mid$(t1MenuScorrevole, 1, 18) = Mid$(t1MenuScorrevole, 2, 18) Mid$(t1MenuScorrevole, 18, 1) = Mid$(ScrittaInseritaMenuScorrevole, ndx1MenuScorrevole, 1) ScrittaMenuScorrevole = Mid(t1MenuScorrevole, 1, 18)What I have tried:a conversion site but not run correctlythank you 解决方案 (18) n1MenuScorrevole = Len(ScrittaInseritaMenuScorrevole) ndx1MenuScorrevole = (ndx1MenuScorrevole Mod n1MenuScorrevole) + 1 Mid(t1MenuScorrevole, 1, 18) = Mid(t1MenuScorrevole, 2, 18) Mid 这篇关于将代码从VB.NET转换为C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 阿里云证书,YYDS!
05-24 14:33