/// <summary> /// Determines whether a given type can be serialized with this class. /// </summary> /// <param /// name="typeData">Type to test.</param> /// <returns><c>true</c> if this class can handle the type.</returns> public static bool CanHandle(TypeData typeData) { return(typeData.GetCustomAttribute <DataContractAttribute>() != null); }
/// <summary> /// Detects whether a given type can be serialized with this class. /// </summary> /// <param /// name="typeData">Type to test.</param> /// <returns><c>true</c> if this class can handle the type.</returns> public static bool CanHandle(TypeData typeData) { return(typeData.GetCustomAttribute <SerializableAttribute>() != null); }