using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.CSharp.Symbols; internal sealed class SynthesizedDelegateConstructor : SynthesizedInstanceConstructor { private readonly ImmutableArray _parameters; public override ImmutableArray Parameters => _parameters; public SynthesizedDelegateConstructor(NamedTypeSymbol containingType, TypeSymbol objectType, TypeSymbol intPtrType) : base(containingType) { _parameters = ImmutableArray.Create(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(objectType), 0, (RefKind)0, "object", (ScopedKind)0), SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(intPtrType), 1, (RefKind)0, "method", (ScopedKind)0)); } }