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

发表于:2007-06-30来源:作者:点击数: 标签:
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();
             }

原文转自:http://www.ltesting.net