Simon Mourier's Avatar
Simon Mourier's blog (1351 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c#
  • propertygrid

How to populate a Property's DescriptionAttribute from xml

Sep 27, 2013 See the question and my original answer on StackOverflow

DescriptionAttribute cannot be compiled and be dynamic at the same time.

Check out my answer to this SO question that demonstrates how to build a dynamic type descriptor: Optimize class for PropertyGrid

With the DynamicTypeDescriptor class, you can build a wrapper class with description attributes you want.

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms