Exemplo n.º 1
0
        private void SetAssemblyProperties(ClassDescription description, Assembly assembly)
        {
            AssemblyName assemblyName = assembly.GetName();
            description.AssemblyName = assemblyName.Name;
            description.AssemblyVersion = assemblyName.Version.ToString();

            FileVersionInfo version = FileVersionInfo.GetVersionInfo(assembly.Location);
            description.AssemblyFileVersion = version.FileVersion;
        }
Exemplo n.º 2
0
        public ClassDescription BuildClassDescription(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            var description = new ClassDescription()
            {
                Name = type.Name,
                Namespace = type.Namespace
            };

            SetAssemblyProperties(description, type.Assembly);

            description.Summary = _xmlParser.GetTypeSummary(type);

            return description;
        }