4 references to new
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.cs (4)
206
static ExpectedAlternateMethodGroup createSingle(string methodName) =>
new
(methodName);
223
or "op_GreaterThanOrEqual" or "op_LessThan" or "op_LessThanOrEqual" => new
ExpectedAlternateMethodGroup
(alternateMethod1: "CompareTo", alternateMethod2: "Compare"),
231
or "op_ModulusAssignment" => new
ExpectedAlternateMethodGroup
(alternateMethod1: "Mod", alternateMethod2: "Remainder"),
245
or "op_Explicit" => new
ExpectedAlternateMethodGroup
(alternateMethod1: $"To{GetTypeName(returnType)}", alternateMethod2: parameterType != null ? $"From{GetTypeName(parameterType)}" : null),