Table of Contents

Class MemberDescriptor

Namespace
Mapperion.Model
Assembly
Mapperion.dll

Describes a single type member taking part in a map, normalising the differences between properties, fields and parameterless methods.

public sealed class MemberDescriptor : IEquatable<MemberDescriptor>
Inheritance
MemberDescriptor
Implements
Inherited Members

Properties

CanRead

Gets a value indicating whether the member can be read.

CanWrite

Gets a value indicating whether the member can be written.

DeclaringType

Gets the type that declares the member.

Kind

Gets the kind of member.

Member

Gets the underlying reflection member.

MemberType

Gets the type of the value the member holds or returns.

Name

Gets the member name.

Methods

Equals(MemberDescriptor?)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Determines whether the specified object is equal to the current object.

ForField(FieldInfo)

Creates a descriptor for a field.

ForMethod(MethodInfo)

Creates a descriptor for a parameterless, value-returning method.

ForProperty(PropertyInfo)

Creates a descriptor for a property.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.