[]
Determines whether the object can use this resolver.
public override bool CanResolve(string name, object value, Type type, IContext context)
Type | Name | Description |
---|---|---|
string | name | The name of the object. |
object | value | The object value. |
Type | type | The object type. |
IContext | context | The context. |
Type | Description |
---|---|
bool | A bool value indicates whether to be resovled. If true, it means the object can be resolved. Otherwise, the resolver cannot support this object. |
Gets whether the specified object can be serialized or deserialized.
public virtual bool CanResolve(string name, object value, Type type)
Type | Name | Description |
---|---|---|
string | name | The property name. |
object | value | The value of the object. |
Type | type | The type of the object. |
Type | Description |
---|---|
bool | A bool value indicates whether to be resovled. If true, it means the object can be serialized or deserialized. The object doesn't support serialization or deserialization. |