/// <summary>
 /// Gets a value indicating whether the <paramref name="type"/> should be treated as having value semantics.
 /// </summary>
 bool IEquivalencyAssertionOptions.IsValueType(Type type)
 {
     return(valueTypes.Contains(type) || isValueType(type) || AssertionOptions.IsValueType(type));
 }
예제 #2
0
 public static bool IsComplexType(this Type type)
 {
     return(HasProperties(type) && !AssertionOptions.IsValueType(type));
 }