/// <summary> /// Sets the value of the property for the given comment from a string. /// </summary> /// <param name="evnt">The comment we want to set the value on.</param> /// <param name="valueString">The string holding the value.</param> public void SetValueFromString(List <Nodes.Node.ErrorCheck> result, Nodes.Node.Comment comment, string valueString) { if (_property != null) { _property.SetValue(comment, FromStringValue(result, null, null, _property.PropertyType, valueString), null); } }
/// <summary> /// Sets the value of the property for the given comment from a string. /// </summary> /// <param name="evnt">The comment we want to set the value on.</param> /// <param name="valueString">The string holding the value.</param> public void SetValueFromString(Nodes.Node.Comment comment, string valueString) { _property.SetValue(comment, FromStringValue(null, null, _property.PropertyType, valueString), null); }
/// <summary> /// Returns the property's value as a string. /// </summary> /// <param name="node">The comment we want to get the value from.</param> /// <returns>The value as a string.</returns> public string GetStringValue(Nodes.Node.Comment comment) { return(_attribute.GetStringValue(_property.GetValue(comment, null))); }