Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
AnswerRe: Winforms Usercontrol Databinding question Pin
Gerry Schmitz18-Feb-21 7:38
mveGerry Schmitz18-Feb-21 7:38 
GeneralRe: Winforms Usercontrol Databinding question Pin
Member 1501196518-Feb-21 7:47
Member 1501196518-Feb-21 7:47 
GeneralRe: Winforms Usercontrol Databinding question Pin
Gerry Schmitz18-Feb-21 8:07
mveGerry Schmitz18-Feb-21 8:07 
QuestionArticle "tip/trick "Converting Enum member names and values in C#"" Pin
Сергій Ярошко16-Feb-21 22:46
professionalСергій Ярошко16-Feb-21 22:46 
AnswerRe: Article "tip/trick "Converting Enum member names and values in C#"" Pin
PIEBALDconsult17-Feb-21 3:17
mvePIEBALDconsult17-Feb-21 3:17 
GeneralRe: Article "tip/trick "Converting Enum member names and values in C#"" Pin
Сергій Ярошко17-Feb-21 4:13
professionalСергій Ярошко17-Feb-21 4:13 
GeneralRe: Article "tip/trick "Converting Enum member names and values in C#"" Pin
Richard Deeming17-Feb-21 4:31
mveRichard Deeming17-Feb-21 4:31 
GeneralRe: Article "tip/trick "Converting Enum member names and values in C#"" Pin
PIEBALDconsult17-Feb-21 5:19
mvePIEBALDconsult17-Feb-21 5:19 
Right. Sorting is unnecessary as we're just adding them to a Dictionary anyway and losing the order.
Not a huge difference performance, particularly as it should happen only once per run and an enum should have few members to begin with.
My earlier comment on an "article" also pointed out that the Dictionary(ies) can be static because they don't change.

I'll also add though, that my implementation also supports having a DescriptionAttribute on each member and that can only be retrieved by retrieving the members (fields), not simply enumerating the names.

Plus... I allow finding an enum value by an abbreviated name, not just the full name, but that's not often useful.
QuestionHow C# handles binary files? Pin
Member 1477325816-Feb-21 21:59
Member 1477325816-Feb-21 21:59 
AnswerRe: How C# handles binary files? Pin
Richard MacCutchan16-Feb-21 22:11
mveRichard MacCutchan16-Feb-21 22:11 
AnswerRe: How C# handles binary files? Pin
OriginalGriff16-Feb-21 22:39
mveOriginalGriff16-Feb-21 22:39 
AnswerRe: How C# handles binary files? Pin
Gerry Schmitz17-Feb-21 6:00
mveGerry Schmitz17-Feb-21 6:00 
QuestionC#, loop statement Pin
Jennalyn Nayoyos15-Feb-21 2:57
Jennalyn Nayoyos15-Feb-21 2:57 
AnswerRe: C#, loop statement Pin
OriginalGriff15-Feb-21 3:16
mveOriginalGriff15-Feb-21 3:16 
AnswerRe: C#, loop statement Pin
Richard MacCutchan15-Feb-21 4:53
mveRichard MacCutchan15-Feb-21 4:53 
AnswerRe: C#, loop statement Pin
Gerry Schmitz15-Feb-21 6:10
mveGerry Schmitz15-Feb-21 6:10 
QuestionRe: C#, loop statement Pin
Kenneth Haugland15-Feb-21 19:42
mvaKenneth Haugland15-Feb-21 19:42 
AnswerRe: C#, loop statement Pin
Richard MacCutchan15-Feb-21 21:13
mveRichard MacCutchan15-Feb-21 21:13 
QuestionWITSML Server And Client in C# Pin
Member 1332584614-Feb-21 21:59
Member 1332584614-Feb-21 21:59 
AnswerRe: WITSML Server And Client in C# Pin
Richard MacCutchan14-Feb-21 22:18
mveRichard MacCutchan14-Feb-21 22:18 
GeneralRe: WITSML Server And Client in C# Pin
Member 1332584614-Feb-21 22:51
Member 1332584614-Feb-21 22:51 
Question[solved] Two-way binding winforms checkbox to property? Pin
RobertSF14-Feb-21 6:21
professionalRobertSF14-Feb-21 6:21 
AnswerRe: Two-way binding winforms checkbox to property? Pin
Gerry Schmitz14-Feb-21 6:37
mveGerry Schmitz14-Feb-21 6:37 
GeneralRe: Two-way binding winforms checkbox to property? Pin
RobertSF14-Feb-21 7:42
professionalRobertSF14-Feb-21 7:42 
GeneralRe: Two-way binding winforms checkbox to property? Pin
Gerry Schmitz14-Feb-21 8:20
mveGerry Schmitz14-Feb-21 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.