示例#1
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed implementation of interface {0} from {1} which may cause code using the {2} to not compile.",
                        FormatItem.MemberName(OldInterfaceType, StyleFlags.Italics),
                        FormatItem.MemberName(NewType, StyleFlags.Bold),
                        FormatItem.MemberKind(NewType));
示例#2
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed {0} {1} which will cause code using the {0} to not compile.",
                        FormatItem.MemberKind(OldMember),
                        FormatItem.MemberName(OldMember, StyleFlags.Bold));
示例#3
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the base sealed class of {0} to something not derived from the previous base sealed class which may cause code using the sealed class to not compile. The base sealed class was changed from {1} to {2}.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold),
                        FormatItem.MemberName(OldType.BaseType, StyleFlags.Italics),
                        FormatItem.MemberName(NewType.BaseType, StyleFlags.Italics));
示例#4
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed the 'this' modifier from the first parameter of {0} which will cause code using the method as an extension method to not compile.",
                        FormatItem.MemberName(NewMethod, StyleFlags.Bold));
示例#5
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed virtual {0} {1} to non-virtual which will cause derived classes overriding the {0} to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
示例#6
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added or removed the static modifier of {0} {1} which may cause code using the {0} to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
示例#7
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed constraints for the generic type parameter {0} in {1} {2} which may cause constructions of the entity to not compile.",
                        FormatItem.MemberName(NewGenericParameter, StyleFlags.Italics),
                        FormatItem.MemberKind(NewGenericParameter.GenericDeclaringMember),
                        FormatItem.MemberName(NewGenericParameter.GenericDeclaringMember, StyleFlags.Bold));
示例#8
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added a new abstract {0} {1} which will cause derived classes to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
示例#9
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed read-write field {0} to read-only which will cause writes to the field to not compile.",
                        FormatItem.MemberName(NewField, StyleFlags.Bold));
示例#10
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed non-static sealed class {0} to static which will cause instantiations of the sealed class to not compile.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold));
示例#11
0
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed accessibility of {0} from public to protected which may cause code to not compile.",
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
示例#12
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added a new interface {0} {1} which will cause implementing types to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
示例#13
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added a new base interface {1} to {0} which will cause implementing types to not compile.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold),
                        FormatItem.MemberName(NewInterfaceType, StyleFlags.Italics));
示例#14
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed override of abstract {0} {1} in {2} which may derived classes to not compile.",
                        FormatItem.MemberKind(OldMemberOverride),
                        FormatItem.MemberName(OldMemberOverride, StyleFlags.Italics),
                        FormatItem.MemberName(NewType, StyleFlags.Bold));
示例#15
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed variance (in or out modifier) for the generic type parameter {0} in {1} {2} which may cause implicit conversions of the {1} to not compile.",
                        FormatItem.MemberName(NewGenericParameter, StyleFlags.Italics),
                        FormatItem.MemberKind(NewGenericParameter.GenericDeclaringMember),
                        FormatItem.MemberName(NewGenericParameter.GenericDeclaringMember, StyleFlags.Bold));
示例#16
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed or changed the visibility of the get or set accessor of {0} {1} which may code using the {0} to not compile.",
                        FormatItem.MemberKind(NewProperty),
                        FormatItem.MemberName(NewProperty, StyleFlags.Bold));
示例#17
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed sealed class {0} from unsealed to sealed which will cause derived classes to not compile.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold));