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
LegacyClassstringThe legacy class the member is on, without the library, such as
TextBox. A member every control has is on ExtenderClass.LegacyNamestringThe member's legacy name, such as
ControlTipText.RDFormsNamestringThe RDForms member it is rewritten to, such as
ToolTipText. It isLegacyNamefor a member that keeps its name.UnitPortUnitWhat converting its values involves. For a method, such as
Move, it is the unit of its length arguments: the first four.ValueValuePortHow its legacy values convert to RDForms values, or null when they are the same.
DiagnosticPortDiagnosticWhat 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
IsRenamed
Whether the member's RDForms name differs from its legacy name, compared without regard to case.
public bool IsRenamed { get; }
Property Value
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
LegacyName
The member's legacy name, such as ControlTipText.
public string LegacyName { get; init; }
Property Value
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
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
Value
How its legacy values convert to RDForms values, or null when they are the same.
public ValuePort? Value { get; init; }