Can a static property of a static class be a DataMember BindingSource?

I have a static class that has a bunch of static properties. When I try to bind a property to a BindingSource (in the user interface), I can select a static class as the data source, however, when I drop out the DataMember combo, there is nothing there.

Is it possible to use the static property of a static class as a DataMember of a Binding source?

I should mention that this is a Winforms project.

+3
source share
1 answer

. System.ComponentModel/TypeDescriptor, . , , .

, , . ( : )

+2

Source: https://habr.com/ru/post/1763668/


All Articles