30 references to AddIncompatibleDifference
Microsoft.DotNet.ApiCompat.Core (30)
Rules\Compat\AttributeDifference.cs (2)
150
differences.
AddIncompatibleDifference
("CannotChangeAttribute",
164
differences.
AddIncompatibleDifference
("CannotRemoveAttribute",
Rules\Compat\CannotAddAbstractMembers.cs (1)
28
differences.
AddIncompatibleDifference
(this, impl.GetMemberViolationMessage("Member", $"is abstract in the {Implementation}", $"is missing in the {Contract}"));
Rules\Compat\CannotAddAttributes.cs (1)
107
differences.
AddIncompatibleDifference
(this,
Rules\Compat\CannotMakeAbstract.cs (2)
19
differences.
AddIncompatibleDifference
("CannotMakeMemberAbstract", impl.GetMemberViolationMessage("Member", $"is abstract in the {Implementation}", $"is not abstract in the {Contract}"));
33
differences.
AddIncompatibleDifference
("CannotMakeTypeAbstract",
Rules\Compat\CannotMakeMoreVisible.cs (2)
28
differences.
AddIncompatibleDifference
(this,
51
differences.
AddIncompatibleDifference
(this,
Rules\Compat\CannotMakeNonVirtual.cs (1)
35
differences.
AddIncompatibleDifference
("CannotMakeMemberNonVirtual", impl.GetMemberViolationMessage("Member", $"is non-virtual in the {Implementation}", $"is virtual in the {Contract}"));
Rules\Compat\CannotRemoveBaseTypeOrInterface.cs (2)
44
differences.
AddIncompatibleDifference
(this,
66
differences.
AddIncompatibleDifference
(this,
Rules\Compat\CannotRemoveGenerics.cs (2)
54
differences.
AddIncompatibleDifference
("CannotChangeVariance",
63
differences.
AddIncompatibleDifference
("CannotChangeGenericConstraints",
Rules\Compat\CannotSealType.cs (1)
19
differences.
AddIncompatibleDifference
(this,
Rules\Compat\DelegatesMustMatch.cs (1)
74
differences.
AddIncompatibleDifference
("DelegateParamNameMustMatch",
Rules\Compat\EnumValuesMustMatch.cs (1)
36
differences.
AddIncompatibleDifference
(this,
Rules\Compat\InterfacesShouldHaveSameMembers.cs (2)
26
differences.
AddIncompatibleDifference
(this, contract.GetMemberViolationMessage($"{GetNameOfInterfaceMemberType(contract)}", $"is present in the {Contract}", $"not in the {Implementation}"));
35
differences.
AddIncompatibleDifference
(this, impl.GetMemberViolationMessage($"{GetNameOfInterfaceMemberType(impl)}", $"is present in the {Implementation}", $"not in the {Contract}"));
Rules\Compat\MembersMustExist.cs (1)
51
differences.
AddIncompatibleDifference
(this, incompatibleDifferenceMessage);
Rules\Compat\ParameterModifiersCannotChange.cs (3)
58
differences.
AddIncompatibleDifference
(this,
70
differences.
AddIncompatibleDifference
(this,
82
differences.
AddIncompatibleDifference
(this,
Rules\Compat\ParameterNamesCannotChange.cs (1)
47
differences.
AddIncompatibleDifference
(this,
Rules\Compat\TypeCannotChangeClassification.cs (2)
22
differences.
AddIncompatibleDifference
(this,
30
differences.
AddIncompatibleDifference
(this,
Rules\Compat\TypesMustAlwaysImplementIDisposable.cs (1)
19
differences.
AddIncompatibleDifference
(this,
Rules\Compat\TypesMustExist.cs (1)
17
differences.
AddIncompatibleDifference
(this,
Rules\InheritanceHierarchyChangeTracker.cs (1)
78
differences.
AddIncompatibleDifference
(this,
Rules\ParameterTypeCannotChange.cs (2)
31
differences.
AddIncompatibleDifference
(this,
43
differences.
AddIncompatibleDifference
(this,