private static WidgetDescriptor CreateDescriptor(TypeInfo typeInfo)
{
var descriptor = new WidgetDescriptor
{
FullName = WidgetConventions.GetWidgetFullName(typeInfo),
ShortName = WidgetConventions.GetWidgetName(typeInfo),
Type = typeInfo.AsType()
};
return descriptor;
}
}