c# - How to convert System.Drawing.Brush to string -


this question has answer here:

i cannot find correct solution this

string colorname = ...converting... brushes.brown;  colorname  should have 'brown' 

is possible?

to desired result, can use:

string colorname = nameof(brushes.brown); 

now colorname should have value 'brown'.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -