mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 13:45:05 +00:00
refactor: Reducing duplicate code
This commit is contained in:
@@ -34,14 +34,8 @@ namespace ICD.Common.Utils
|
|||||||
/// <param name="value"></param>
|
/// <param name="value"></param>
|
||||||
public ReprBuilder AppendProperty(string name, object value)
|
public ReprBuilder AppendProperty(string name, object value)
|
||||||
{
|
{
|
||||||
m_PropertyOrder.Remove(name);
|
|
||||||
m_PropertyOrder.Add(name);
|
|
||||||
|
|
||||||
string valueString = GetValueStringRepresentation(value);
|
string valueString = GetValueStringRepresentation(value);
|
||||||
|
return AppendPropertyRaw(name, valueString);
|
||||||
m_PropertyValues[name] = valueString;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user