MyMediaLite  3.08
Static Public Member Functions
Utils Class Reference

Class containing utility functions. More...

List of all members.

Static Public Member Functions

static IList< Type > GetTypes (string name_space)
 Get all types in a namespace.
static Func< A, R > Memoize< A, R > (this Func< A, R > f)
 Memoize a function.
static void Shuffle< T > (this IList< T > list)
 Shuffle a list in-place.

Detailed Description

Class containing utility functions.


Member Function Documentation

static IList<Type> GetTypes ( string  name_space) [inline, static]

Get all types in a namespace.

Parameters:
name_spacea string describing the namespace
Returns:
a list of Type objects
static Func<A, R> Memoize< A, R > ( this Func< A, R >  f) [inline, static]

Memoize a function.

Parameters:
fThe function to memoize
Returns:
a version of the function that remembers past function results
static void Shuffle< T > ( this IList< T >  list) [inline, static]

Shuffle a list in-place.

Fisher-Yates shuffle, see http://en.wikipedia.org/wiki/Fisher–Yates_shuffle


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