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

Add an AssemblyExtensions extensions method class for Assembly object #168

Open
N1K0232 opened this issue Dec 7, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@N1K0232
Copy link

N1K0232 commented Dec 7, 2023

I was thinking about this issue, because I saw some of your last web projects there's a file AssemblyExtensions.cs that provides a
generic GetAttribute method

The signature is:
public static string GetAttribute(this Assembly assembly, Func<T, string> value) where T : Attribute { }

This method would be helpful to avoid code duplication everytime
Hope it will be a good upgrade :)

EDIT: the github editor doesn't take the generic parameter in the method definition, but it was meaning to be a generic method

@engineering87
Copy link
Contributor

Hi there,
@marcominerva my proposal for this implementation in PR241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants