コード例 #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));