Table of Contents

Class BasedOnAttribute

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Identifies the schema member used by a result type and optionally records its acknowledged version.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
public sealed class BasedOnAttribute : Attribute, IEnumerable<MemberInfo>, IEnumerable
Inheritance
BasedOnAttribute
Implements
Inherited Members
Extension Methods

Constructors

BasedOnAttribute(Type, string?, string?)

Selects constructors, or the named methods, and optionally parses an acknowledged schema timestamp.

public BasedOnAttribute(Type declaringType, string? lastUpdated = null, string? methodName = null)

Parameters

declaringType Type
lastUpdated string
methodName string

Properties

DeclaringType

Gets the type that declares the referenced member.

public Type DeclaringType { get; }

Property Value

Type

LastUpdated

Gets the UTC time at which the link was last synchronized.

public DateTime? LastUpdated { get; }

Property Value

DateTime?

MethodName

Gets the method name when this reference selects a method.

public string? MethodName { get; }

Property Value

string

Methods

GetEnumerator()

Enumerates the schema members selected by this attribute.

public IEnumerator<MemberInfo> GetEnumerator()

Returns

IEnumerator<MemberInfo>