Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Custom Template with Generics definition and generics where clauses #15

Closed
bard83 opened this issue Nov 6, 2023 · 0 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@bard83
Copy link
Owner

bard83 commented Nov 6, 2023

Introduce two specific sections which covers generics:

  • genericsDefinition: defines the keys used inside the generic. The keys will be specified inside a string separated by commas.
    genericsDefinition: "I,J,K". The keys should be enclosed automatically between < and >.
  • genericsWhereClauses: defines one or more generic where clauses. It's an array of string which the constraint of the related generic key. genericsWhereClauses: ["where I : class", "where J : struct", "where K : IMyInterface"]. The clauses will be joined by EOL and applied to the custom template.
@bard83 bard83 added this to the 1.10 milestone Nov 6, 2023
@bard83 bard83 added the enhancement New feature or request label Nov 6, 2023
@bard83 bard83 closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant