Base:
property
ParameterCount
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.ParameterCount
7 references to ParameterCount
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (1)
1731ContainingType is SourceMemberContainerTypeSymbol { IsRecord: false, IsRecordStruct: false, PrimaryConstructor: SynthesizedPrimaryConstructor { ParameterCount: not 0 } primaryConstructor, OriginalDefinition: var containingTypeDefinition } &&
Binder\WithPrimaryConstructorParametersBinder.cs (1)
52if (_type is SourceMemberContainerTypeSymbol { PrimaryConstructor: { ParameterCount: not 0 } primaryCtor })
Symbols\Source\SourceMemberContainerSymbol.cs (3)
3460if (primaryConstructor.ParameterCount == 0) 4240if (ctor.ParameterCount != 0) 4249primaryAndCopyCtorAmbiguity = ctor.ParameterCount == 1 && ctor.Parameters[0].Type.Equals(this, TypeCompareKind.AllIgnoreOptions);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
130if (ContainingType is { IsRecord: true } or { IsRecordStruct: true } || ParameterCount == 0)
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
47protected override int GetParameterCountFromSyntax() => _ctor.ParameterCount;