protected override void ApplyInternal(DescriptionAttribute attribute, IMetadataBuilder builder) { if (!builder.Has("Description")) { builder.Add("Description", attribute.Description); } }
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); }