[]
        
(Showing Draft Content)

C1.JsonNet.JsonResolver.CanResolve

CanResolve Method

CanResolve(string, object, Type, IContext)

Determines whether the object can use this resolver.

Declaration
public override bool CanResolve(string name, object value, Type type, IContext context)
Parameters
Type Name Description
string name

The name of the object.

object value

The object value.

Type type

The object type.

IContext context

The context.

Returns
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.

Overrides

CanResolve(string, object, Type)

Gets whether the specified object can be serialized or deserialized.

Declaration
public virtual bool CanResolve(string name, object value, Type type)
Parameters
Type Name Description
string name

The property name.

object value

The value of the object.

Type type

The type of the object.

Returns
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.