using System; using System.Collections.Generic; namespace Apewer.Internals.QrCode { internal delegate TResult Func(T arg); internal static class Methods { public static bool Contains(IEnumerable objects, T cell) { foreach (var i in objects) { if ((object)i == (object)cell) return true; } return false; } public static List Select(IEnumerable input, Func selector) { var list = new List(); foreach (var oldValue in input) { list.Add(selector(oldValue)); } return list; } } }