Method | Description | |
---|---|---|
FindModelDetail ( string typeName ) : ModelDetail |
Finds model details for a given type by its string name
|
|
MetadataReflector ( NServiceMVC config, System.Formats formatter ) : System |
Creates a new instance of the reflector
|
Method | Description | |
---|---|---|
CreateModelDetail ( System type ) : ModelDetail |
Creates a new modelDetail object, and checks MetadataReflector.GetModelTypes() to see if we have metadata
|
|
CreateModelDetail ( System type, bool hasMetadata, string defaultDescription = null ) : ModelDetail |
Creates a new modelDetail object
|
|
FindBasicModelTypes ( ) : ModelDetailCollection |
Finds built-in System.* types, repesentign them as models
|
|
FindModelTypes ( ) : ModelDetailCollection |
Gets known model data types (cached).
|
|
FindRouteDetails ( ) : IEnumerable |
||
GetCSharpCode ( |
||
GetHttpMethod ( string methods ) : string |
Extracts the HTTP method for the route attribute
|
|
GetModelDetailArray ( |
Create ModelDetail of an array of the passed type
|
|
IsArrayOrEnumerableSingle ( |
Checks if the type is an array or Enumerable (single-element arrays/lists only: not dictionaries/hashes)
|
public FindModelDetail ( string typeName ) : ModelDetail | ||
typeName | string | |
return | ModelDetail |
public MetadataReflector ( NServiceMVC config, System.Formats formatter ) : System | ||
config | NServiceMVC | The current NServiceMVC configuration |
formatter | System.Formats | The current NServiceMVC FormatManager |
return | System |