Skip to content

Commit

Permalink
imp - Close the PropertyInfo property setters
Browse files Browse the repository at this point in the history
---

These were not intended to be used.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 8, 2024
1 parent 6bb30e5 commit 20b9485
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions VisualCard/Parsers/Arguments/PropertyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,46 +32,34 @@ namespace VisualCard.Parsers.Arguments
[DebuggerDisplay("Property: {Arguments.Length} args, {Prefix} [G: {Group}] = {Value}")]
public class PropertyInfo : IEquatable<PropertyInfo?>
{
private string rawValue = "";
private string prefix = "";
private string group = "";
private ArgumentInfo[] arguments = [];
private readonly string rawValue = "";
private readonly string prefix = "";
private readonly string group = "";
private readonly ArgumentInfo[] arguments = [];

/// <summary>
/// Raw value
/// </summary>
public string Value
{
get => rawValue;
set => rawValue = value;
}
public string Value =>
rawValue;

/// <summary>
/// Property prefix
/// </summary>
public string Prefix
{
get => prefix;
set => prefix = value;
}
public string Prefix =>
prefix;

/// <summary>
/// Property group
/// </summary>
public string Group
{
get => group;
set => group = value;
}
public string Group =>
group;

/// <summary>
/// Argument info instances. It includes AltId, type, and value
/// </summary>
public ArgumentInfo[] Arguments
{
get => arguments;
set => arguments = value;
}
public ArgumentInfo[] Arguments =>
arguments;

/// <summary>
/// Checks to see if both the property info instances are equal
Expand Down Expand Up @@ -145,10 +133,10 @@ internal PropertyInfo(string line)
prefix = xNonstandard ? VcardConstants._xSpecifier : prefix;

// Install values
Value = value;
Prefix = prefix;
Arguments = finalArgs;
Group = group;
this.rawValue = value;
this.prefix = prefix;
this.arguments = finalArgs;
this.group = group;
}
}
}

0 comments on commit 20b9485

Please sign in to comment.