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