예제 #1
0
        private void GetInfo(UpgradeConfig config, Type type, PropertyInfo property)
        {
            var member = HelpXml.FirstOrDefault(p => p.Name == type.FullName + "." + property.Name);

            if (member != null)
            {
                config.Description = member.Summary;
                config.Caption     = member.DisplayName;
                config.Description = member.Remark ?? member.Summary;
            }
            var descript = property.GetCustomAttribute <DescriptionAttribute>();

            if (descript != null)
            {
                config.Description = descript.Description;
            }
            var category = property.GetCustomAttribute <CategoryAttribute>();

            if (category != null)
            {
                config.Category = category.Category;
            }
            var displayName = property.GetCustomAttribute <DisplayNameAttribute>();

            if (displayName != null)
            {
                config.Caption = displayName.DisplayName;
            }
        }
예제 #2
0
        private void GetInfo(UpgradeConfig config, Type type)
        {
            var member = HelpXml.FirstOrDefault(p => p.Name == type.FullName);

            if (member != null)
            {
                config.Description = member.Summary;
                config.Caption     = member.DisplayName;
                config.Description = member.Remark ?? member.Summary;
            }
        }