C# Class Antaris.AspNetCore.Mvc.Widgets.Internal.WidgetConventions

Provides convention-based methods supporting Widget discovery.
Afficher le fichier Open project: Antaris/AspNetCore.Mvc.Widgets

Méthodes publiques

Méthode Description
GetShortNameByConvention ( TypeInfo widgetType ) : string

Gets the short name for a widget.

GetWidgetFullName ( TypeInfo widgetType ) : string

Gets the widget full name for the given widget type.

GetWidgetName ( TypeInfo widgetType ) : string

Gets the widget name for the given widget type.

IsWidget ( TypeInfo typeInfo ) : bool

Determines if the given type represents a widget.

Method Details

GetShortNameByConvention() public static méthode

Gets the short name for a widget.
public static GetShortNameByConvention ( TypeInfo widgetType ) : string
widgetType System.Reflection.TypeInfo The widget type.
Résultat string

GetWidgetFullName() public static méthode

Gets the widget full name for the given widget type.
public static GetWidgetFullName ( TypeInfo widgetType ) : string
widgetType System.Reflection.TypeInfo The widget type.
Résultat string

GetWidgetName() public static méthode

Gets the widget name for the given widget type.
public static GetWidgetName ( TypeInfo widgetType ) : string
widgetType System.Reflection.TypeInfo The widget type.
Résultat string

IsWidget() public static méthode

Determines if the given type represents a widget.
public static IsWidget ( TypeInfo typeInfo ) : bool
typeInfo System.Reflection.TypeInfo The candidate type.
Résultat bool