NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.Utilities.CollectionUtil Class Reference

Executes a transformation function on each element of a collection and returns the results in a new List. More...

Public Member Functions

delegate T FunctionDelegate< T > (T obj)
 
delegate TResult FunctionDelegate< T, TResult > (T obj)
 

Static Public Member Functions

static IList Transform (ICollection coll, FunctionDelegate< object > func)
 Executes a function on each item in a ICollection and returns the results in a new IList. More...
 
static IList< T > Cast< T > (ICollection coll)
 Executes a function on each item in a ICollection and returns the results in a new IList. More...
 
static IList< TOut > Cast< TIn, TOut > (ICollection< TIn > coll)
 Executes a function on each item in a ICollection{TIn} and returns the results in a new IList{TOut}. More...
 
static IList< T > Transform< T > (IList< T > list, FunctionDelegate< T > function)
 Executes a function on each item in a IList{T} and returns the results in a new IList{T}. More...
 
static IList< TResult > Transform< T, TResult > (IList< T > list, FunctionDelegate< T, TResult > function)
 Executes a function on each item in a IList{T} and returns the results in a new IList{TResult}. More...
 
static void Apply (ICollection coll, FunctionDelegate< object > func)
 Executes a function on each item in a ICollection but does not accumulate the result. More...
 
static void Apply< T > (IEnumerable< T > coll, FunctionDelegate< T > func)
 Executes a function on each item in a IEnumerable{T} but does not accumulate the result. More...
 
static IList Select (ICollection coll, FunctionDelegate< object, bool > func)
 Executes a function on each item in a ICollection and collects all the entries for which the result of the function is equal to true. More...
 
static IList< T > Select< T > (IEnumerable< T > items, FunctionDelegate< T, bool > func)
 Executes a function on each item in a ICollection and collects all the entries for which the result of the function is equal to true. More...
 
static TOut[] Cast< TIn, TOut > (TIn[] array)
 Copies T s in an array to an object array More...
 

Detailed Description

Executes a transformation function on each element of a collection and returns the results in a new List.

Member Function Documentation

static void NetTopologySuite.Utilities.CollectionUtil.Apply ( ICollection  coll,
FunctionDelegate< object >  func 
)
static

Executes a function on each item in a ICollection but does not accumulate the result.

Parameters
coll
func
static void NetTopologySuite.Utilities.CollectionUtil.Apply< T > ( IEnumerable< T >  coll,
FunctionDelegate< T >  func 
)
static

Executes a function on each item in a IEnumerable{T} but does not accumulate the result.

Parameters
coll
func
static IList<T> NetTopologySuite.Utilities.CollectionUtil.Cast< T > ( ICollection  coll)
static

Executes a function on each item in a ICollection and returns the results in a new IList.

Parameters
coll
Returns
static IList<TOut> NetTopologySuite.Utilities.CollectionUtil.Cast< TIn, TOut > ( ICollection< TIn >  coll)
static

Executes a function on each item in a ICollection{TIn} and returns the results in a new IList{TOut}.

Parameters
coll
Returns
Type Constraints
TIn :class 
TOut :class 
static TOut [] NetTopologySuite.Utilities.CollectionUtil.Cast< TIn, TOut > ( TIn[]  array)
static

Copies T s in an array to an object array

Template Parameters
TIn
TOut
Parameters
arraythe source array
Returns
An array of objects
delegate T NetTopologySuite.Utilities.CollectionUtil.FunctionDelegate< T > ( obj)

Template Parameters
T
Parameters
obj
Returns
delegate TResult NetTopologySuite.Utilities.CollectionUtil.FunctionDelegate< T, TResult > ( obj)

Template Parameters
T
TResult
Parameters
obj
Returns
static IList NetTopologySuite.Utilities.CollectionUtil.Select ( ICollection  coll,
FunctionDelegate< object, bool >  func 
)
static

Executes a function on each item in a ICollection and collects all the entries for which the result of the function is equal to true.

Parameters
coll
func
Returns
static IList<T> NetTopologySuite.Utilities.CollectionUtil.Select< T > ( IEnumerable< T >  items,
FunctionDelegate< T, bool >  func 
)
static

Executes a function on each item in a ICollection and collects all the entries for which the result of the function is equal to true.

Parameters
items
func
Returns
static IList NetTopologySuite.Utilities.CollectionUtil.Transform ( ICollection  coll,
FunctionDelegate< object >  func 
)
static

Executes a function on each item in a ICollection and returns the results in a new IList.

Parameters
coll
func
Returns
static IList<T> NetTopologySuite.Utilities.CollectionUtil.Transform< T > ( IList< T >  list,
FunctionDelegate< T >  function 
)
static

Executes a function on each item in a IList{T} and returns the results in a new IList{T}.

Parameters
list
function
Returns
static IList<TResult> NetTopologySuite.Utilities.CollectionUtil.Transform< T, TResult > ( IList< T >  list,
FunctionDelegate< T, TResult >  function 
)
static

Executes a function on each item in a IList{T} and returns the results in a new IList{TResult}.

Parameters
list
function
Returns

The documentation for this class was generated from the following file: