C# Class Illusion.MessageBinder

A service that is capable of properly binding values to a method's parameters and creating instances of IResult.
Afficher le fichier Open project: kasicass/kasicass

Méthodes publiques

Свойство Type Description
CustomConverters Dictionary>
EvaluateParameter Func
SpecialValues Dictionary>

Méthodes publiques

Méthode Description
CoerceValue ( Type destinationType, object providedValue, object context ) : object

Coerces the provided value to the destination type.

DetermineParameters ( ActionExecutionContext context, ParameterInfo requiredParameters ) : object[]

Determines the parameters that a method should be invoked with.

GetDefaultValue ( Type type ) : object

Gets the default value for a type.

Method Details

CoerceValue() public static méthode

Coerces the provided value to the destination type.
public static CoerceValue ( Type destinationType, object providedValue, object context ) : object
destinationType System.Type The destination type.
providedValue object The provided value.
context object An optional context value which can be used during conversion.
Résultat object

DetermineParameters() public static méthode

Determines the parameters that a method should be invoked with.
public static DetermineParameters ( ActionExecutionContext context, ParameterInfo requiredParameters ) : object[]
context ActionExecutionContext The action execution context.
requiredParameters System.Reflection.ParameterInfo The parameters required to complete the invocation.
Résultat object[]

GetDefaultValue() public static méthode

Gets the default value for a type.
public static GetDefaultValue ( Type type ) : object
type System.Type The type.
Résultat object

Property Details

CustomConverters public_oe static_oe property

Custom converters used by the framework registered by destination type for which they will be selected. The converter is passed the existing value to convert and a "context" object.
public static Dictionary> CustomConverters
Résultat Dictionary>

EvaluateParameter public_oe static_oe property

Transforms the textual parameter into the actual parameter.
public static Func EvaluateParameter
Résultat Func

SpecialValues public_oe static_oe property

The special parameter values recognized by the message binder along with their resolvers.
public static Dictionary> SpecialValues
Résultat Dictionary>