public bool IsAssignableTo(string pattern, bool useRegularExpressions = false) { return(pattern != null && TypeConstraints.All(type => type.IsAssignableTo(pattern, useRegularExpressions))); }
public bool IsAssignableTo(IType assignableToType) { return(TypeConstraints.All(type => type.IsAssignableTo(assignableToType))); }