Show / Hide Table of Contents

Class ParseResult<TModel>

The result of parsing a request body

Inheritance
Object
ParseResult<TModel>
Namespace: Seltzr.Parsers
Assembly: Seltzr.dll
Syntax
C#
public class ParseResult<TModel>
Type Parameters
TModel

The type of model being parsed

Constructors

| Improve this Doc View Source

ParseResult(TModel, IEnumerable<PropertyInfo>)

Initializes a new instance of the ParseResult<TModel> class.

C#
public ParseResult(TModel parsedModel, IEnumerable<PropertyInfo> presentProperties)
Parameters
parsedModelTModel

The model that was parsed

presentPropertiesIEnumerable<PropertyInfo>

The properties that were present on this model in the request body

Properties

| Improve this Doc View Source

ParsedModel

Gets or sets the model that was parsed

C#
public TModel ParsedModel { get; set; }
Property Value
TModel
| Improve this Doc View Source

PresentProperties

Gets or sets a list of the properties that were present on this model in the request body

C#
public PropertyInfo[] PresentProperties { get; set; }
Property Value
PropertyInfo[]

Operators

| Improve this Doc View Source

Implicit(ParseResult<TModel> to TModel)

Implicitly casts this ParseResult<TModel> to the it contains.

C#
public static implicit operator TModel(ParseResult<TModel> result)
Parameters
resultParseResult<TModel>

The ParseResult<TModel> to cast

Returns

TModel

  • Improve this Doc
  • View Source
Back to top Generated by DocFX