helper.cs
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· CS 代码 · 共 53 行
CS
53 行
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 + =
减小字号Ctrl + -
显示快捷键?