Was this page helpful?

ArrayUtil Static Class

    Table of contents
    1. 1. Members
      1. 1.1. Methods
    Table of Contents
    public static class ArrayUtil
    Namespace: System
    Assembly: mindtouch.dream
    Type Hierarchy:
    • object
      • ArrayUtil
    A static utility class containing helper and extension methods for working with System.Array instances.

    Members

    Methods

    Visibility Description
    Public ToDictionary(this IEnumerable<TValue> collection, Func<TValue,TKey> keySelector, bool overwriteDuplicates) (Extension) Creates a System.Collections.Generic.Dictionary<TKey,TValue> from an System.Collections.Generic.IEnumerable<T> according to a specified key selector function.
    Public SubArray(this T[] array, int begin) (Extension)
    Public SubArray(this T[] array, int begin, int end) (Extension)
    Public At(this T[] array, int index) (Extension)
    Public AtAssign(this T[] array, int index, T value) (Extension)
    Public AsNameValueCollection(this IEnumerable<KeyValuePair<string,string>> enumerable) (Extension) Convert an enumerable of key/value pairs into a System.Collections.Specialized.NameValueCollection.
    Public AddToNameValueCollection(this NameValueCollection collection, IEnumerable<KeyValuePair<string,string>> enumerable) (Extension) Add an enumerable of key value pairs to a NameValueCollection.
    Public Get(this NameValueCollection collection, string key) (Extension) Get the first value or null for a certain key from a System.Collections.Specialized.NameValueCollection.
    Public AddRange(this IList<TInput> list, IEnumerable<TInput> itemsToAdd) (Extension) Append an enumerable of values to an existing list.
    Public Concat(params T[][] arrays)
    Public Compare(T[] left, T[] right)
    Public Intersect(T[] left, T[] right)
    Public Intersect(T[] left, T[] right, Comparison<T> comparison)
    Public Union(T[] left, T[] right)
    Public Union(T[] left, T[] right, Comparison<T> comparison)
    Public IsNullOrEmpty(IList<T> items) Indicates whether the specified list is null or empty.
    Public AreNullOrEqualLength(Array left, Array right) Indicates whether the specified arrays are either both null or of the same length.
    Public AllKeyValues(NameValueCollection collection) Retrieve all key/value pairs from the collection as an enumerable collection.
    Public AllKeyValuePairs(NameValueCollection collection) Retrieve all key/value pairs from the collection as an array.
    Public Diff(T[] before, T[] after, int maxsize, Equality<T> equal)
    Public MergeDiff(Tuplet`2[] left, Tuplet`2[] right, ArrayMergeDiffPriority priority, Equality<T> equal, Func<T,object> track, out bool hasConflicts)
    Public Resize(T[] array, int length)
    Public AsHash(this IEnumerable<V> collection, Converter<V,K> makeKey) (Extension) AsHash<K, V>() is obsolete. Use IEnumerable<T>.ToDictionary<T, K>() extension method instead (requires System.Linq)
    Public Select(IEnumerable<T> collection, Predicate<T> predicate) Select(IEnumerable<T>, Predicate<T>) is obsolete. Use IEnumerable<T>.Where(Func<T, bool>) instead (requires System.Linq).
    Public Convert(IEnumerable<TInput> collection, Converter<TInput,TOutput> converter) Convert(IEnumerable<TInput>, Converter<TInput, TOutput>) is obsolete. Use IEnumerable<TInput>.Select(Func<TInput, TOutput>) instead (requires System.Linq).
    Public ToString() (Inherited from Object)
    Public Equals(object obj) (Inherited from Object)
    Public GetHashCode() (Inherited from Object)
    Public GetType() (Inherited from Object)
    Protected MemberwiseClone() (Inherited from Object)
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by