Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1629 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
13 changed files with 191 additions and 48 deletions
@ -0,0 +1,39 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Collections; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Runtime.InteropServices; |
||||||
|
using System.Text; |
||||||
|
using System.Threading; |
||||||
|
|
||||||
|
using Debugger.Wrappers.CorDebug; |
||||||
|
|
||||||
|
namespace Debugger |
||||||
|
{ |
||||||
|
public static class Util |
||||||
|
{ |
||||||
|
public static List<T> MergeLists<T>(T a, IEnumerable<T> b) |
||||||
|
{ |
||||||
|
return MergeLists(new T[] {a}, b); |
||||||
|
} |
||||||
|
|
||||||
|
public static List<T> MergeLists<T>(IEnumerable<T> a, T b) |
||||||
|
{ |
||||||
|
return MergeLists(a, new T[] {b}); |
||||||
|
} |
||||||
|
|
||||||
|
public static List<T> MergeLists<T>(IEnumerable<T> a, IEnumerable<T> b) |
||||||
|
{ |
||||||
|
List<T> newList = new List<T>(); |
||||||
|
if (a != null) newList.AddRange(a); |
||||||
|
if (b != null) newList.AddRange(b); |
||||||
|
return newList; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue