public ParameterValue(object value) { var other = value as ParameterValue; if (other != null) { Value = other.Value; DefaultFormat = other.DefaultFormat; } else { Value = value; } }