public static void IsTrue(Func <bool> predicate) { ContractUtils.RequiresNotNull(predicate, nameof(predicate)); Debug.Assert(predicate()); }
public ValueArray(T[] array) { ContractUtils.RequiresNotNull(array, "array"); ContractUtils.RequiresNotNullItems(array, "array"); _array = array; }
public CovariantConvertor(IEnumerable <T> enumerable) { ContractUtils.RequiresNotNull(enumerable, "enumerable"); _enumerable = enumerable; }
public static string[] Split(string str, char[] separators, int maxComponents, StringSplitOptions options) { ContractUtils.RequiresNotNull(str, "str"); return(str.Split(separators, maxComponents, options)); }