C# Class Caliburn.Micro.MessageBinder

A service that is capable of properly binding values to a method's parameters and creating instances of IResult.
Show file Open project: dbuksbaum/Learning-Caliburn.Micro Class Usage Examples

Public Properties

Property Type Description
SpecialValues string[]

Public Methods

Method Description
CoerceValue ( Type destinationType, object providedValue ) : object

Coerces the provided value to the destination type.

CreateResult ( object returnValue ) : SequentialResult

Converts the return value of a method into an IResult if possible.

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 method

Coerces the provided value to the destination type.
public static CoerceValue ( Type destinationType, object providedValue ) : object
destinationType System.Type The destination type.
providedValue object The provided value.
return object

CreateResult() public static method

Converts the return value of a method into an IResult if possible.
public static CreateResult ( object returnValue ) : SequentialResult
returnValue object The return value of a method.
return SequentialResult

DetermineParameters() public static method

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.
return object[]

GetDefaultValue() public static method

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

Property Details

SpecialValues public static property

The special parameter values recognized by the message binder.
public static string[] SpecialValues
return string[]