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 · 0 comments
Open

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant