Class AltUpToAttribute
Adds an alternative name that consumes segments up to a given key, for reaching a member across a flattened name whose depth is named rather than counted.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = true)]
public sealed class AltUpToAttribute : Attribute, INameComparerMaker
- Inheritance
-
AltUpToAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
AltUpToAttribute(string, string)
Adds an alternative name that consumes segments up to a given key, for reaching a member across a flattened name whose depth is named rather than counted.
public AltUpToAttribute(string AlternativeName, string KeyUpTo)
Parameters
Fields
AlternativeName
The extra name a column may use to match this member.
public readonly string AlternativeName
Field Value
KeyUpTo
The key the alternative spans up to, skipping the segments before it.
public readonly string KeyUpTo
Field Value
Methods
MakeComparer(Type, ref INameComparer, object[], object?)
Builds the matcher for a member or parameter from its reflection metadata.
public INameComparer MakeComparer(Type type, ref INameComparer defaultComparer, object[] attributes, object? param)
Parameters
typeTypedefaultComparerINameComparerattributesobject[]paramobject