首页 > 编程 > .NET > 正文

在C#中调用VB.NET函数实例

2024-07-10 13:08:04
字体:
来源:转载
供稿:网友
using system;
using microsoft.visualbasic;
。。。。。。

          static void main(string[] args)
             {
                    s = "abcd123";
                    //fully qualified use of mid()
                    stringletters = microsoft.visualbasic.strings.mid(s,1,4);
                    //can also just use the static function since
                    //we imported the namespace
                    stringnumbers = strings.mid(s,5,3);
                    console.writeline(numbers + " " + letters);
                    console.read();
             }



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表