Is it possible to have a delegate as attribute parameter?
No, you cannot have a delegate as an attribute constructor parameter. See available types: Attribute parameter types As a workaround (although it’s hacky and error prone) you can create a delegate with reflection: [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)] public class WorkspaceAttribute : Attribute { public ConnectionPropertiesDelegate ConnectionDelegate { get; set; } … Read more