Click here to Skip to main content
15,895,192 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i send sms ... Pin
Judah Gabriel Himango27-Jun-06 4:19
sponsorJudah Gabriel Himango27-Jun-06 4:19 
QuestionLoading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 2:55
jjansen27-Jun-06 2:55 
AnswerRe: Loading embedded cursor through ResourceManager Pin
Robert Rohde27-Jun-06 3:08
Robert Rohde27-Jun-06 3:08 
JokeRe: Loading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 3:47
jjansen27-Jun-06 3:47 
AnswerRe: Loading embedded cursor through ResourceManager Pin
Josh Smith27-Jun-06 3:48
Josh Smith27-Jun-06 3:48 
GeneralRe: Loading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 3:59
jjansen27-Jun-06 3:59 
GeneralRe: Loading embedded cursor through ResourceManager Pin
Josh Smith27-Jun-06 4:14
Josh Smith27-Jun-06 4:14 
QuestionInterfaces and factories Pin
Harvey Turtle27-Jun-06 2:42
Harvey Turtle27-Jun-06 2:42 
Hello,

I'm attempting to use a factory pattern for the first time and I've hit an obstacle. Can Anyone assist?

I have 2 classes, ClassA and classB.
The 2 classes both implement an interface called 'notifier'.
This interface has one method called 'notify'
Class A contains other methods as well as the 'notify' method.
Class B contains only the 'notify' interface method.

What I am attempting to do is call a factory method that will create and return a new instance of either classA or classB, dependant upon a type parameter that is passed to the method.

Can anyone tell me the correct way (pseudo syntax?) to implement this?

Thanks in advance!



AnswerRe: Interfaces and factories Pin
Robert Rohde27-Jun-06 2:55
Robert Rohde27-Jun-06 2:55 
GeneralRe: Interfaces and factories Pin
Harvey Turtle27-Jun-06 3:08
Harvey Turtle27-Jun-06 3:08 
GeneralRe: Interfaces and factories Pin
Robert Rohde27-Jun-06 3:46
Robert Rohde27-Jun-06 3:46 
GeneralRe: Interfaces and factories Pin
Harvey Turtle27-Jun-06 3:51
Harvey Turtle27-Jun-06 3:51 
GeneralRe: Interfaces and factories Pin
Robert Rohde27-Jun-06 4:01
Robert Rohde27-Jun-06 4:01 
GeneralRe: Interfaces and factories Pin
Harvey Turtle27-Jun-06 4:05
Harvey Turtle27-Jun-06 4:05 
AnswerRe: Interfaces and factories Pin
Guffa27-Jun-06 4:02
Guffa27-Jun-06 4:02 
GeneralRe: Interfaces and factories Pin
BoneSoft27-Jun-06 4:05
BoneSoft27-Jun-06 4:05 
Questionhowto list running processes ? Pin
cmpeng3427-Jun-06 2:38
cmpeng3427-Jun-06 2:38 
AnswerRe: howto list running processes ? Pin
stancrm27-Jun-06 3:42
stancrm27-Jun-06 3:42 
AnswerRe: howto list running processes ? Pin
wasife27-Jun-06 3:48
wasife27-Jun-06 3:48 
Question"error creating window handle" Pin
rah_sin27-Jun-06 2:14
professionalrah_sin27-Jun-06 2:14 
Questionhow to copy file to a shared folder in LAN using C# Pin
yossof elnaggar27-Jun-06 1:10
yossof elnaggar27-Jun-06 1:10 
QuestionPlease examine the article Pin
ashishinfra27-Jun-06 0:16
ashishinfra27-Jun-06 0:16 
AnswerRe: Please examine the article Pin
J4amieC27-Jun-06 0:31
J4amieC27-Jun-06 0:31 
GeneralRe: Please examine the article Pin
ashishinfra27-Jun-06 2:38
ashishinfra27-Jun-06 2:38 
GeneralRe: Please examine the article Pin
J4amieC27-Jun-06 2:49
J4amieC27-Jun-06 2:49 

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.