Class AssemblyExtensions
- Namespace
- HeroKit.Assemblies
- Assembly
- HeroKit.dll
Provides extension methods for Assembly values.
public static class AssemblyExtensions
- Inheritance
-
AssemblyExtensions
- Inherited Members
Methods
GetAttribute<T>(Assembly)
Gets the specified attribute from the calling assembly.
public static T? GetAttribute<T>(this Assembly callingAssembly) where T : Attribute
Parameters
callingAssemblyAssemblyThe calling assembly.
Returns
- T
The attribute of type T if found, or null if not found.
Type Parameters
TThe type of attribute to retrieve.