private static ViewComponentDescriptor CreateCandidate(TypeInfo typeInfo)
        {
            var candidate = new ViewComponentDescriptor()
            {
                FullName  = ViewComponentConventions.GetComponentFullName(typeInfo),
                ShortName = ViewComponentConventions.GetComponentName(typeInfo),
                Type      = typeInfo.AsType(),
            };

            return(candidate);
        }
        private static ViewComponentDescriptor CreateDescriptor(TypeInfo typeInfo)
        {
            var type      = typeInfo.AsType();
            var candidate = new ViewComponentDescriptor
            {
                FullName   = ViewComponentConventions.GetComponentFullName(typeInfo),
                ShortName  = ViewComponentConventions.GetComponentName(typeInfo),
                Type       = type,
                MethodInfo = FindMethod(type)
            };

            return(candidate);
        }