Class ParseResult<TModel>
The result of parsing a request body
Namespace: Seltzr.Parsers
Assembly: Seltzr.dll
Syntax
C#
public class ParseResult<TModel>
Type Parameters
TModel
The type of model being parsed
Constructors
Initializes a new instance of the ParseResult<TModel> class.
C#
public ParseResult(TModel parsedModel, IEnumerable<PropertyInfo> presentProperties)
Parameters
parsedModel
TModel
The model that was parsed
presentProperties
IEnumerable<PropertyInfo>
The properties that were present on this model in the request body
Properties
Gets or sets the model that was parsed
C#
public TModel ParsedModel { get; set; }
Property Value
TModelGets 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
Implicitly casts this ParseResult<TModel> to the it contains.
C#
public static implicit operator TModel(ParseResult<TModel> result)
Parameters
result
ParseResult<TModel>
The ParseResult<TModel> to cast
Returns
TModel