Exemple #1
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the type of parameter '{0}' in {1} in a way which may cause invocations to not compile. Type was changed from {2} to {3}.",
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold),
                        FormatItem.TypedItemTypeName(OldParameter, StyleFlags.Italics),
                        FormatItem.TypedItemTypeName(NewParameter, StyleFlags.Italics));
Exemple #2
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the ref or out modifier of parameter '{0}' in {1} which will cause invocations to not compile.",
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold));
Exemple #3
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the name of a parameter from '{0}' to '{1}' in {2} which will cause named arguments in invocations to not compile.",
                        FormatItem.ParameterName(OldParameter, StyleFlags.Italics),
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold));
Exemple #4
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed default value of parameter '{0}' in {1} which may cause an unintentional behavioral change in code. The value was changed from '{2}' to '{3}'.",
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold),
                        FormatItem.DefaultParameterValue(OldParameter, StyleFlags.Italics),
                        FormatItem.DefaultParameterValue(NewParameter, StyleFlags.Italics));