public static string GetOverrideComment(object value, object sourceServerValue) { if (sourceServerValue == null) { return(""); } string comment = ""; string valueString = ValueFormatter.Format(value); string sourceServerValueString = ValueFormatter.Format(sourceServerValue); if (sourceServerValueString != valueString) { comment = " # overriding " + sourceServerValueString; } return(comment); }
public static string FormatAttributeCode(string paramName, object value) { string valueString = ValueFormatter.Format(value); return($"{paramName} = {valueString}"); }