AjaxControlToolkit.Reference.Core.Documentation.FillClientMembers C# (CSharp) Метод

FillClientMembers() статический приватный Метод

static private FillClientMembers ( Documentation doc, string typeFullName, string scriptsFolder ) : void
doc Documentation
typeFullName string
scriptsFolder string
Результат void
        static void FillClientMembers(Documentation doc, string typeFullName, string scriptsFolder)
        {
            var actAssembly = typeof(ToolkitResourceManager).Assembly;
            var type = actAssembly.GetType(typeFullName, true);

            if(type.IsSubclassOf(typeof(ExtenderControlBase))
                ||
                type.IsSubclassOf(typeof(ScriptControlBase))
                ||
                type == typeof(ComboBox)) {
                var clientScriptName = type
                    .GetCustomAttributesData()
                    .First(a => a.Constructor.DeclaringType == typeof(ClientScriptResourceAttribute))
                    .ConstructorArguments[1]
                    .Value;
                var jsFileName = clientScriptName + ".js";

                var jsLines = File.ReadAllLines(Path.Combine(scriptsFolder, jsFileName));
                var commentParser = new CommentParser();
                var clientMembers = commentParser.ParseFile(jsLines, typeFullName);

                doc.Add(clientMembers, ContentType.Text);
            }
        }