From 949bffdf81bdc338b34125b883b291c8c80ae989 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Sat, 9 Nov 2024 09:06:16 +0300 Subject: [PATCH] ref - ValueInfo properties are no longer virtual --- All properties and fields of ValueInfo are no longer marked as virtual, hence the refactor. --- Type: ref Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- VisualCard/Parts/ValueInfo.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/VisualCard/Parts/ValueInfo.cs b/VisualCard/Parts/ValueInfo.cs index 8d11896..338268e 100644 --- a/VisualCard/Parts/ValueInfo.cs +++ b/VisualCard/Parts/ValueInfo.cs @@ -34,22 +34,22 @@ public class ValueInfo : IEquatable> /// /// Property information containing details about this property that this class instance was created from /// - public virtual PropertyInfo? Property { get; internal set; } + public PropertyInfo? Property { get; internal set; } /// /// Alternative ID. -1 if unspecified. /// - public virtual int AltId { get; internal set; } + public int AltId { get; internal set; } /// /// Card element type (home, work, ...) /// - public virtual string[] ElementTypes { get; internal set; } = []; + public string[] ElementTypes { get; internal set; } = []; /// /// Value type (usually set by VALUE=) /// - public virtual string ValueType { get; internal set; } = ""; + public string ValueType { get; internal set; } = ""; /// /// Property group @@ -64,9 +64,9 @@ public class ValueInfo : IEquatable> Property?.NestedGroups ?? []; /// - /// Value + /// Parsed value /// - public virtual TValue Value { get; internal set; } + public TValue Value { get; internal set; } /// /// Is this part preferred? @@ -146,7 +146,7 @@ public override int GetHashCode() public static bool operator !=(ValueInfo left, ValueInfo right) => !(left == right); - internal virtual bool EqualsInternal(ValueInfo source, ValueInfo target) => + internal bool EqualsInternal(ValueInfo source, ValueInfo target) => true; internal ValueInfo(PropertyInfo? property, int altId, string[] elementTypes, string valueType, TValue? value)