/// <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)); }
public override bool HandlesType(Type type) { return(type != typeof(string) && TypeExtensions.GetCollectionItemType(type) != null); }