⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 helper.cs

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 CS
字号:
using System;using System.Text;using NUnit.Framework;namespace MonoTests.Microsoft_VisualBasic{	[TestFixture]	public class Helper	{		[Test]		public void PrintRuntimePath ()		{			Console.WriteLine ("\r\nUsing runtime in: " + typeof (Microsoft.VisualBasic.Strings).Assembly.Location);		}				public static bool OnMono {			get {				return Type.GetType ("Mono.Runtime") != null;			}		}				public static bool OnMS {			get {				return !OnMono;			}		}#if NET_2_0		public static T [] getObjects <T> (System.Collections.IEnumerable en)		{			System.Collections.Generic.List<T> list = new System.Collections.Generic.List<T> ();			foreach (T obj in en) {				list.Add (obj);			}			return list.ToArray ();		}				public static void RemoveWarning  (object obj)		{		}				public static string Join <T> (T [] array, string delimiter) 		{			if (array == null)				return Microsoft.VisualBasic.Strings.Join (null, delimiter);			object [] obj = new object [array.Length];			Array.Copy (array, obj, array.Length);			return Microsoft.VisualBasic.Strings.Join (obj, delimiter);		}#endif	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -