Click here to Skip to main content
15,921,694 members
Home / Discussions / C#
   

C#

 
AnswerRe: Digit To text Converter Pin
Arjun "Mjolnir" Bahree10-Sep-06 4:31
Arjun "Mjolnir" Bahree10-Sep-06 4:31 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain10-Sep-06 8:54
Syed Shahid Hussain10-Sep-06 8:54 
QuestionHow to convert string Pin
papa808-Sep-06 6:25
papa808-Sep-06 6:25 
AnswerRe: How to convert string Pin
Not Active8-Sep-06 6:38
mentorNot Active8-Sep-06 6:38 
GeneralRe: How to convert string Pin
papa808-Sep-06 6:42
papa808-Sep-06 6:42 
GeneralRe: How to convert string Pin
KevinMac8-Sep-06 6:54
KevinMac8-Sep-06 6:54 
GeneralRe: How to convert string Pin
papa808-Sep-06 7:34
papa808-Sep-06 7:34 
QuestionDuplicate GUIDs? Pin
Xiangyang Liu 刘向阳8-Sep-06 6:15
Xiangyang Liu 刘向阳8-Sep-06 6:15 
AnswerRe: Duplicate GUIDs? Pin
Dustin Metzgar8-Sep-06 9:05
Dustin Metzgar8-Sep-06 9:05 
Questioncode to access the windows scheduled task ? Pin
Sunil B Muthanna8-Sep-06 5:47
Sunil B Muthanna8-Sep-06 5:47 
QuestionDesign Time issue of Windows Control? Pin
MudkiSekhon8-Sep-06 5:46
MudkiSekhon8-Sep-06 5:46 
AnswerRe: Design Time issue of Windows Control? Pin
ic3b3rg38-Sep-06 11:50
ic3b3rg38-Sep-06 11:50 
GeneralRe: Design Time issue of Windows Control? Pin
MudkiSekhon8-Sep-06 19:47
MudkiSekhon8-Sep-06 19:47 
QuestionHow to implement a singleton in c# generic classes Pin
Chris Richner8-Sep-06 5:19
Chris Richner8-Sep-06 5:19 
AnswerRe: How to implement a singleton in c# generic classes [modified] Pin
Jun Du8-Sep-06 6:21
Jun Du8-Sep-06 6:21 
GeneralRe: How to implement a singleton in c# generic classes Pin
Chris Richner9-Sep-06 4:27
Chris Richner9-Sep-06 4:27 
GeneralRe: How to implement a singleton in c# generic classes Pin
Jun Du9-Sep-06 4:53
Jun Du9-Sep-06 4:53 
Chris Richner wrote:
One have to know the SomeConcretClassType to access the class type to get the Instance property.


Yes, that is what you used generic class for. If you don't or needn't know SomeConcretClassType, why do you use a generic class?

Chris Richner wrote:
What happens now if the class instance was made by

new ShellApplicationBase();


No, you can't call Singleton's contructor directly. It's protected. You have to get the instance via static call GetInstance().

Chris Richner wrote:
There must be a way to retrieve this Instance property on this generic class without giving types to access just the class type, am I wrong?


Give a try, but I never thought we could call any method of a generic class without defining a "concret" class first.


Best,
Jun

AnswerRe: How to implement a singleton in c# generic classes Pin
Daniel Grunwald9-Sep-06 6:41
Daniel Grunwald9-Sep-06 6:41 
AnswerRe: Accessing a static field on a generic class? Pin
Chris Richner10-Sep-06 9:28
Chris Richner10-Sep-06 9:28 
QuestionWindow Form Refresh during code execution. Pin
sir_chuy8-Sep-06 4:40
sir_chuy8-Sep-06 4:40 
AnswerRe: Window Form Refresh during code execution. Pin
Judah Gabriel Himango8-Sep-06 5:32
sponsorJudah Gabriel Himango8-Sep-06 5:32 
GeneralRe: Window Form Refresh during code execution. Pin
sir_chuy8-Sep-06 7:17
sir_chuy8-Sep-06 7:17 
QuestionGet only file name from str Pin
papa808-Sep-06 4:11
papa808-Sep-06 4:11 
AnswerRe: Get only file name from str Pin
User 66588-Sep-06 4:16
User 66588-Sep-06 4:16 
GeneralRe: Get only file name from str Pin
Not Active8-Sep-06 4:36
mentorNot Active8-Sep-06 4:36 

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.