コード例 #1
0
 public bool IsAssignableTo(string pattern, bool useRegularExpressions = false)
 {
     return(pattern != null && TypeConstraints.All(type => type.IsAssignableTo(pattern, useRegularExpressions)));
 }
コード例 #2
0
 public bool IsAssignableTo(IType assignableToType)
 {
     return(TypeConstraints.All(type => type.IsAssignableTo(assignableToType)));
 }