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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -