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

Provides convention-based methods supporting Widget discovery.
显示文件 Open project: Antaris/AspNetCore.Mvc.Widgets

Public Methods

Method 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 method

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

GetWidgetFullName() public static method

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

GetWidgetName() public static method

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

IsWidget() public static method

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