Click here to Skip to main content
15,905,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: Digit To text Converter Pin
leppie8-Sep-06 7:11
leppie8-Sep-06 7:11 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain8-Sep-06 8:09
Syed Shahid Hussain8-Sep-06 8:09 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain8-Sep-06 9:12
Syed Shahid Hussain8-Sep-06 9:12 
GeneralRe: Digit To text Converter Pin
Nader Elshehabi8-Sep-06 9:18
Nader Elshehabi8-Sep-06 9:18 
AnswerRe: Digit To text Converter Pin
Nader Elshehabi8-Sep-06 9:54
Nader Elshehabi8-Sep-06 9:54 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain9-Sep-06 5:56
Syed Shahid Hussain9-Sep-06 5:56 
JokeRe: Digit To text Converter Pin
Nader Elshehabi9-Sep-06 6:59
Nader Elshehabi9-Sep-06 6:59 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain10-Sep-06 8:50
Syed Shahid Hussain10-Sep-06 8:50 
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 
Hi,

My class looks like
C#
public abstract class ShellApplicationBase<TModule, TModuleLoader> : BaseNet.Icarus.Shell.Interfaces.IShellApplication
{
}


Every class in my app should now be able to access the shell class. Therefore I wanted to implement a singleton where one could access Shell.Instance.DoNothingAndWaitInfite();

to do so i did
C#
static IShellApplication _instance;
public IShellApplication Instance
        {
            get
            {
                return _instance;
            }
        }


so far so good, there is a static public IShellApplication Property on my shell class. Now one would have the idea to access this singelton inside the app

C#
ShellApplicationBase<???>.Instance.DoNothingAndWaitInfite();


How can one access the generic class .Instance without knowing the concrete Types ( ??? ) that have been used to make a new instance of the generic class?

I just like to access this shell class from everywhere in my app, any ideas?


myMsg.BehindDaKeys = "Chris Richner";

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 

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.