Click here to Skip to main content
15,794,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: What are Custom Control and User Control? Pin
Gerry Schmitz22-Sep-23 5:05
mveGerry Schmitz22-Sep-23 5:05 
QuestionFIREBASE Filter Data from Date to Date Pin
sameera suresh bandara herath18-Sep-23 4:04
sameera suresh bandara herath18-Sep-23 4:04 
AnswerRe: FIREBASE Filter Data from Date to Date Pin
OriginalGriff18-Sep-23 5:05
mvaOriginalGriff18-Sep-23 5:05 
AnswerRe: FIREBASE Filter Data from Date to Date Pin
Richard Deeming18-Sep-23 5:55
mveRichard Deeming18-Sep-23 5:55 
AnswerRe: FIREBASE Filter Data from Date to Date Pin
jschell18-Sep-23 6:38
jschell18-Sep-23 6:38 
GeneralRe: FIREBASE Filter Data from Date to Date Pin
Gerry Schmitz18-Sep-23 7:32
mveGerry Schmitz18-Sep-23 7:32 
GeneralRe: FIREBASE Filter Data from Date to Date Pin
jschell19-Sep-23 6:34
jschell19-Sep-23 6:34 
Suggestion"New" Pattern Pin
Gerry Schmitz15-Sep-23 10:08
mveGerry Schmitz15-Sep-23 10:08 
"Everything" I see dealing with Enums (in different name spaces) is lots of "recasting" to the underlying type or lots of namespace qualifying.

I needed to integrate "duplicate" Enums in different exe's and dll's that were "not the same" (or easily accessible) due to namespaces.

Now in my sender "POCO" I might have:
[DataMember]
public ServiceArm ServiceArm { get; set; } = ServiceArm.Undefined;

So I added to the POCO:
public string ServiceName => Enum.GetName( typeof( ServiceArm ), this.ServiceArm );

And in the consumer (different namespace; different exe / dll):
block.ServiceArm = Enum.Parse<ServiceArm>( unit.ServiceName );

No fiddling with namespaces; no obscure casting.


"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

GeneralRe: "New" Pattern Pin
trønderen15-Sep-23 11:16
trønderen15-Sep-23 11:16 
GeneralRe: "New" Pattern Pin
Gerry Schmitz15-Sep-23 13:27
mveGerry Schmitz15-Sep-23 13:27 
GeneralRe: "New" Pattern Pin
trønderen15-Sep-23 14:07
trønderen15-Sep-23 14:07 
GeneralRe: "New" Pattern Pin
Gerry Schmitz15-Sep-23 14:23
mveGerry Schmitz15-Sep-23 14:23 
GeneralRe: "New" Pattern Pin
trønderen15-Sep-23 15:19
trønderen15-Sep-23 15:19 
GeneralRe: "New" Pattern Pin
jschell15-Sep-23 13:24
jschell15-Sep-23 13:24 
GeneralRe: "New" Pattern Pin
Gerry Schmitz15-Sep-23 13:40
mveGerry Schmitz15-Sep-23 13:40 
QuestionHow to .sql scripts during application installation Pin
Member 1128773113-Sep-23 2:07
Member 1128773113-Sep-23 2:07 
AnswerRe: How to .sql scripts during application installation Pin
Richard Andrew x6413-Sep-23 4:32
professionalRichard Andrew x6413-Sep-23 4:32 
AnswerRe: How to .sql scripts during application installation Pin
RedDk13-Sep-23 9:56
RedDk13-Sep-23 9:56 
AnswerRe: How to .sql scripts during application installation Pin
Eddy Vluggen14-Sep-23 15:32
professionalEddy Vluggen14-Sep-23 15:32 
QuestionData Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Fokwa Divine5-Sep-23 5:10
Fokwa Divine5-Sep-23 5:10 
AnswerRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Ron Nicholson5-Sep-23 5:43
professionalRon Nicholson5-Sep-23 5:43 
AnswerRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Richard Deeming5-Sep-23 5:48
mveRichard Deeming5-Sep-23 5:48 
AnswerRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Fokwa Divine5-Sep-23 8:12
Fokwa Divine5-Sep-23 8:12 
GeneralRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
jschell6-Sep-23 7:28
jschell6-Sep-23 7:28 
QuestionBluetooth set as com port in c# Pin
Jan 19472-Sep-23 14:54
Jan 19472-Sep-23 14:54 

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.