예제 #1
0
 protected override void ApplyInternal(DescriptionAttribute attribute, IMetadataBuilder builder)
 {
     if (!builder.Has("Description"))
     {
         builder.Add("Description", attribute.Description);
     }
 }
예제 #2
0
        protected override void ApplyInternal(DisplayAttribute attribute, IMetadataBuilder builder)
        {
            builder.Add("Display.Name", attribute.Name);
            builder.Add("Display.ShortName", attribute.ShortName);

            if (!builder.Has("Description"))
            {
                builder.Add("Description", attribute.Description);
            }

            builder.Add("Display.Order", attribute.Order);
            builder.Add("Display.Watermark", attribute.Prompt);
        }