18 references to CannotChangeGenericConstraint
Microsoft.DotNet.ApiCompatibility (2)
Rules\CannotChangeGenericConstraints.cs (2)
111
DiagnosticIds.
CannotChangeGenericConstraint
,
133
DiagnosticIds.
CannotChangeGenericConstraint
,
Microsoft.DotNet.ApiCompatibility.Tests (16)
Rules\CannotChangeGenericConstraintsTests.cs (16)
43
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.First`1``0:new()"),
44
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.Second`1``0:notnull"),
45
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.Third`1``0:class"),
46
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.Fourth`1``0:struct"),
47
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.Fifth`1``0:unmanaged"),
48
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.Sixth`1``0:T:System.Enum"),
49
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "T:CompatTests.Seventh`1``0:T:System.Runtime.Serialization.ISerializable")
52
.Select(d => CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Added, d.ReferenceId)).ToArray();
88
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.First``1``0:new()"),
89
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.Second``1``0:notnull"),
90
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.Third``1``0:class"),
91
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.Fourth``1``0:struct"),
92
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.Fifth``1``0:unmanaged"),
93
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.Sixth``1``0:T:System.Enum"),
94
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Removed, "M:CompatTests.C.Seventh``1``0:T:System.Runtime.Serialization.ISerializable")
97
.Select(d => CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotChangeGenericConstraint
, string.Empty, DifferenceType.Added, d.ReferenceId)).ToArray();