Пример #1
0
        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);
        }
Пример #2
0
        public static string FormatAttributeCode(string paramName, object value)
        {
            string valueString = ValueFormatter.Format(value);

            return($"{paramName} = {valueString}");
        }