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

- 中国WEB开发者网络 (http://www.webasp.net)
-- 技术教程 (http://www.webasp.net/article/)
--- 在C#中调用VB.NET函数实例 (http://www.webasp.net/article/5/4626.htm)
-- 作者:未知
-- 发布日期: 2003-07-12
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();
             }

webasp.net