public LazyFlatRope(string str, int startIndex, int length) { if (str == null) throw new ArgumentNullException("str"); ValidateHelper.ValidateSubstring(str.Length, startIndex, length); _delegate = CreateDelegate(str, startIndex, length); }
private Type GetDelegateReturnType() { var typeArguments = ImplementationDelegate.GetType().GetGenericArguments(); if (typeArguments.Length == 2) { return(typeArguments[1]); } throw new ArgumentException(nameof(ServiceType)); }
public void Evaluate() { _delegate = _delegate.Evaluate(); }
private LazyFlatRope(ImplementationDelegate d) { _delegate = d; }
public LazyFlatRope(string str) { if (str == null) throw new ArgumentNullException("str"); _delegate = new EvaluatedDelegate(str); }