Click here to Skip to main content
15,913,758 members
Home / Discussions / C#
   

C#

 
AnswerRe: Do not close ContextMenuStrip Pin
BillWoodruff9-Dec-09 12:19
professionalBillWoodruff9-Dec-09 12:19 
GeneralRe: Do not close ContextMenuStrip Pin
eyalle9-Dec-09 19:59
eyalle9-Dec-09 19:59 
GeneralRe: Do not close ContextMenuStrip Pin
BillWoodruff11-Dec-09 5:06
professionalBillWoodruff11-Dec-09 5:06 
GeneralRe: Do not close ContextMenuStrip Pin
eyalle13-Dec-09 20:38
eyalle13-Dec-09 20:38 
GeneralRe: Do not close ContextMenuStrip Pin
BillWoodruff14-Dec-09 3:25
professionalBillWoodruff14-Dec-09 3:25 
QuestionPositioning MdiChild in the Parent Form Pin
Randal Vance Cunanan9-Dec-09 2:14
Randal Vance Cunanan9-Dec-09 2:14 
AnswerRe: Positioning MdiChild in the Parent Form Pin
Randal Vance Cunanan9-Dec-09 2:18
Randal Vance Cunanan9-Dec-09 2:18 
Questionclasses as enum (or something like an enum) Pin
Nathan Gloyn9-Dec-09 1:53
Nathan Gloyn9-Dec-09 1:53 
I'm working with a third party web service that exposes a status property on one of its classes but this property is in fact another class itself.

Whilst this is no great shakes I'm trying to make use of this web service easier for other developers in the company since the web service is abstracted away and we have our own adapter classes exposing just the properties/methods we need and I have been trying to come up with a way that will allow me to treat the status object much like a enum

What I would like to end up with is something like object.status = StatusAdapter.<value>
which would allow something along the lines of if(foo.Status == StatusAdapter.NotStarted){...}

Before anybody says 'simply use an enum' the reason I am not simply using an enum is that the status data that the web service object represents can be added to by a user at any time which means that I need to create all relevant classes required at run-time. If I used an enum I'd have to change the class library and re-deploy to all applications that use it.

I cannot use an interface as was suggested here [^] simply because the consumers of the class library will not be the ones extending the list of statuses they are just needing to use the statuses I provide.

Any ideas?
AnswerRe: classes as enum (or something like an enum) Pin
Keith Barrow9-Dec-09 2:32
professionalKeith Barrow9-Dec-09 2:32 
GeneralRe: classes as enum (or something like an enum) Pin
Nathan Gloyn9-Dec-09 3:11
Nathan Gloyn9-Dec-09 3:11 
GeneralRe: classes as enum (or something like an enum) Pin
Keith Barrow9-Dec-09 3:36
professionalKeith Barrow9-Dec-09 3:36 
AnswerRe: classes as enum (or something like an enum) Pin
PIEBALDconsult9-Dec-09 5:10
mvePIEBALDconsult9-Dec-09 5:10 
GeneralRe: classes as enum (or something like an enum) Pin
Nathan Gloyn9-Dec-09 5:19
Nathan Gloyn9-Dec-09 5:19 
QuestionHow to query a matrix using LINQ Pin
@_csharp9-Dec-09 1:33
@_csharp9-Dec-09 1:33 
AnswerRe: How to query a matrix using LINQ Pin
Sir Dot Net9-Dec-09 8:46
Sir Dot Net9-Dec-09 8:46 
GeneralRe: How to query a matrix using LINQ Pin
@_csharp9-Dec-09 13:02
@_csharp9-Dec-09 13:02 
GeneralRe: How to query a matrix using LINQ Pin
Sir Dot Net10-Dec-09 14:07
Sir Dot Net10-Dec-09 14:07 
QuestionDeplying a C# Application with Database Connection! Pin
dennis_max279-Dec-09 1:23
dennis_max279-Dec-09 1:23 
AnswerRe: Deplying a C# Application with Database Connection! Pin
loyal ginger9-Dec-09 4:25
loyal ginger9-Dec-09 4:25 
AnswerRe: Deplying a C# Application with Database Connection! Pin
vtchris-peterson9-Dec-09 4:45
vtchris-peterson9-Dec-09 4:45 
QuestionCode Project Pin
Muhammad Farooq Qadri9-Dec-09 1:16
Muhammad Farooq Qadri9-Dec-09 1:16 
AnswerRe: Code Project Pin
Rob Philpott9-Dec-09 1:18
Rob Philpott9-Dec-09 1:18 
AnswerRe: Code Project Pin
Ashfield9-Dec-09 1:28
Ashfield9-Dec-09 1:28 
QuestionCode Project Pin
Muhammad Farooq Qadri9-Dec-09 1:15
Muhammad Farooq Qadri9-Dec-09 1:15 
QuestionCode Project Pin
Muhammad Farooq Qadri9-Dec-09 1:15
Muhammad Farooq Qadri9-Dec-09 1:15 

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.