예제 #1
0
        protected static IFrameMoreInfo CreateDotvvmDocsLink(StackFrameModel frame)
        {
            const string DotvvmThumb = "https://dotvvm.com/Content/assets/ico/favicon.png";
            var          type        = frame.Method?.DeclaringType;

            if (type == null)
            {
                return(null);
            }
            while (type.DeclaringType != null)
            {
                type = type.DeclaringType;
            }
            if (type.Namespace == "DotVVM.Framework.Controls")
            {
                const string BuildinControlsDocs = "https://dotvvm.com/docs/controls/builtin/";
                var          url = BuildinControlsDocs + type.Name;
                return(FrameMoreInfo.CreateThumbLink(url, DotvvmThumb));
            }
            return(null);
        }