Table of Contents

Class MemberParser

Namespace
Cuemon.Reflection
Assembly
Cuemon.Core.dll

Provides a generic way to rehydrate serialized objects.

public class MemberParser
Inheritance
Object
MemberParser

Constructors

MemberParser(Type, IEnumerable<MemberArgument>)

Initializes a new instance of the MemberParser class.

public MemberParser(Type source, IEnumerable<MemberArgument> memberArguments)

Parameters

source Type

The System.Type of the source to rehydrate.

memberArguments IEnumerable<MemberArgument>

The arguments associated with the source.

Properties

MemberArguments

Gets the arguments associated with the source to rehydrate.

public IEnumerable<MemberArgument> MemberArguments { get; }

Property Value

IEnumerable<MemberArgument>

The arguments associated with the source to rehydrate.

ProcessedMemberArguments

Gets the processed arguments associated with the source to rehydrate.

public IEnumerable<MemberArgument> ProcessedMemberArguments { get; }

Property Value

IEnumerable<MemberArgument>

The arguments associated with the source to rehydrate.

Remarks

This can be useful for debugging why an instance is not rehydrated as expected.

Source

Gets the System.Type of the source to rehydrate.

public Type Source { get; }

Property Value

Type

The System.Type of the source to rehydrate.

Methods

CreateInstance(Func<ConstructorInfo, Boolean>)

Creates an instance of the System.Type associated with this parser.

public object CreateInstance(Func<ConstructorInfo, bool> predicate = null)

Parameters

predicate Func<ConstructorInfo, Boolean>

A function to test each System.Reflection.ConstructorInfo for a condition.

Returns

Object

An instance equivalent to the System.Type associated with this parser.