T_WolfCurses_AttributeExtensions - Maxwolf/WolfCurses GitHub Wiki

AttributeExtensions Class

Meant for dealing with attributes and grabbing all the available classes of a given type with specified attribute using generics.

Inheritance Hierarchy

System.Object
  WolfCurses.AttributeExtensions
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static class AttributeExtensions

The AttributeExtensions type exposes the following members.

Methods

 

Name Description
Public methodStatic member GetAttributes(T) Find the fields in an enum that have a specific attribute with a specific value.
Public methodStatic member GetEnumAttribute(T) Extension method for enum's that helps with getting custom attributes off of enum values
Public methodStatic member GetTypesWith(TAttribute) Find all the classes which have a custom attribute I've defined on them, and I want to be able to find them on-the-fly when an application is using my library.
Public methodStatic member IsImplementationOf Determine if a type implements a specific generic interface type.
Public methodStatic member ToDescriptionAttribute Attempts to grab description attribute from any object.
  Back to Top

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

WolfCurses Namespace

⚠️ **GitHub.com Fallback** ⚠️