Class MemberParser
- Namespace
- Cuemon.Reflection
- Assembly
- Cuemon.Core.dll
Provides a generic way to rehydrate serialized objects.
public class MemberParser
- Inheritance
-
MemberParser
Constructors
MemberParser(Type, IEnumerable<MemberArgument>)
Initializes a new instance of the MemberParser class.
public MemberParser(Type source, IEnumerable<MemberArgument> memberArguments)
Parameters
source
TypeThe 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 Type of the source to rehydrate.
public Type Source { get; }
Property Value
Methods
CreateInstance(Func<ConstructorInfo, Boolean>)
Creates an instance of the Type associated with this parser.
public object CreateInstance(Func<ConstructorInfo, bool> predicate = null)
Parameters
predicate
Func<ConstructorInfo, Boolean>A function to test each ConstructorInfo for a condition.