Table of Contents

Class MemberPort

Namespace
RDCore.Forms.Porting
Assembly
RDCore.Forms.dll

How a legacy property or method ports to RDForms: its RDForms name, the unit of its values, how its values convert, or why the code port cannot rewrite it.

public sealed record MemberPort : IEquatable<MemberPort>
Inheritance
MemberPort
Implements
Inherited Members

Constructors

MemberPort(string, string, string, PortUnit, ValuePort?, PortDiagnostic?)

How a legacy property or method ports to RDForms: its RDForms name, the unit of its values, how its values convert, or why the code port cannot rewrite it.

public MemberPort(string LegacyClass, string LegacyName, string RDFormsName, PortUnit Unit, ValuePort? Value, PortDiagnostic? Diagnostic)

Parameters

LegacyClass string

The legacy class the member is on, without the library, such as TextBox. A member every control has is on ExtenderClass.

LegacyName string

The member's legacy name, such as ControlTipText.

RDFormsName string

The RDForms member it is rewritten to, such as ToolTipText. It is LegacyName for a member that keeps its name.

Unit PortUnit

What converting its values involves. For a method, such as Move, it is the unit of its length arguments: the first four.

Value ValuePort

How its legacy values convert to RDForms values, or null when they are the same.

Diagnostic PortDiagnostic

What the code port reports at a use of the member it cannot rewrite, or null when it rewrites every use.

Properties

Diagnostic

What the code port reports at a use of the member it cannot rewrite, or null when it rewrites every use.

public PortDiagnostic? Diagnostic { get; init; }

Property Value

PortDiagnostic

IsRenamed

Whether the member's RDForms name differs from its legacy name, compared without regard to case.

public bool IsRenamed { get; }

Property Value

bool

LegacyClass

The legacy class the member is on, without the library, such as TextBox. A member every control has is on ExtenderClass.

public string LegacyClass { get; init; }

Property Value

string

LegacyName

The member's legacy name, such as ControlTipText.

public string LegacyName { get; init; }

Property Value

string

RDFormsName

The RDForms member it is rewritten to, such as ToolTipText. It is LegacyName for a member that keeps its name.

public string RDFormsName { get; init; }

Property Value

string

Unit

What converting its values involves. For a method, such as Move, it is the unit of its length arguments: the first four.

public PortUnit Unit { get; init; }

Property Value

PortUnit

Value

How its legacy values convert to RDForms values, or null when they are the same.

public ValuePort? Value { get; init; }

Property Value

ValuePort