/// <summary> /// Attempts to return the setting's value as a string. /// </summary> /// <returns>A string representation of the value</returns> public string GetValueAsString() { if (!RawValue.StartsWith("\"") || !RawValue.EndsWith("\"")) { throw new Exception("Cannot convert value to string."); } return(RawValue.Substring(1, RawValue.Length - 2)); }