コード例 #1
0
 /// <summary>
 /// Determines if this type handles the specified type.
 /// </summary>
 /// <param name="type">The type that can potentially be handled by this block type.</param>
 /// <returns>
 /// true if this type handles the specified type
 /// </returns>
 public override bool HandlesType(Type type)
 {
     return(TypeExtensions.GetCollectionItemType(type) == null && type != typeof(StringBuilder));
 }
コード例 #2
0
 public override bool HandlesType(Type type)
 {
     return(type != typeof(string) && TypeExtensions.GetCollectionItemType(type) != null);
 }