[]
        
(Showing Draft Content)

C1.Web.Mvc.Serialization.BaseResolver.CanResolve

CanResolve Method

CanResolve(string, object, Type, IContext)

Determines whether the object can use this resolver.

Declaration
public virtual 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.