Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Near-static class Pin
PIEBALDconsult13-Jun-08 15:28
mvePIEBALDconsult13-Jun-08 15:28 
GeneralRe: Near-static class Pin
MarkB77713-Jun-08 16:01
MarkB77713-Jun-08 16:01 
GeneralRe: Near-static class Pin
leppie13-Jun-08 21:56
leppie13-Jun-08 21:56 
GeneralRe: Near-static class Pin
PIEBALDconsult16-Jun-08 10:01
mvePIEBALDconsult16-Jun-08 10:01 
AnswerRe: Near-static class Pin
Ed.Poore13-Jun-08 20:50
Ed.Poore13-Jun-08 20:50 
GeneralRe: Near-static class Pin
PIEBALDconsult14-Jun-08 5:12
mvePIEBALDconsult14-Jun-08 5:12 
GeneralRe: Near-static class Pin
Ed.Poore14-Jun-08 8:12
Ed.Poore14-Jun-08 8:12 
GeneralRe: Near-static class Pin
PIEBALDconsult14-Jun-08 18:45
mvePIEBALDconsult14-Jun-08 18:45 
Ed.Poore wrote:
Are you sure?


With .net 2 and later, yes, but it also depends on how lazy you want the singleton to be, I usually don't need much laziness.


Ed.Poore wrote:
with a private constructor


But in order to derive, the constructor must be at least protected because the derived class needs access to it (at least in the current framework). That would allow the derived class to be a non-singleton, which I don't want to allow.


Ed.Poore wrote:
part of a library


Right, and I'm likely going to write an article on the class.
GeneralRe: Near-static class Pin
Ed.Poore14-Jun-08 21:18
Ed.Poore14-Jun-08 21:18 
GeneralRe: Near-static class Pin
PIEBALDconsult15-Jun-08 7:45
mvePIEBALDconsult15-Jun-08 7:45 
GeneralRe: Near-static class Pin
Ed.Poore15-Jun-08 9:08
Ed.Poore15-Jun-08 9:08 
GeneralRe: Near-static class Pin
PIEBALDconsult16-Jun-08 11:05
mvePIEBALDconsult16-Jun-08 11:05 
GeneralRe: Near-static class Pin
Ed.Poore16-Jun-08 11:15
Ed.Poore16-Jun-08 11:15 
GeneralRe: Near-static class Pin
PIEBALDconsult16-Jun-08 12:41
mvePIEBALDconsult16-Jun-08 12:41 
GeneralRe: Near-static class Pin
Ed.Poore16-Jun-08 13:21
Ed.Poore16-Jun-08 13:21 
GeneralRe: Near-static class Pin
PIEBALDconsult16-Jun-08 14:01
mvePIEBALDconsult16-Jun-08 14:01 
GeneralRe: Near-static class Pin
Ed.Poore16-Jun-08 14:15
Ed.Poore16-Jun-08 14:15 
GeneralRe: Near-static class Pin
Ed.Poore16-Jun-08 14:17
Ed.Poore16-Jun-08 14:17 
GeneralRe: Near-static class Pin
PIEBALDconsult17-Jun-08 6:24
mvePIEBALDconsult17-Jun-08 6:24 
GeneralRe: Near-static class Pin
Ed.Poore17-Jun-08 6:26
Ed.Poore17-Jun-08 6:26 
AnswerRe: Near-static class Pin
leppie13-Jun-08 21:49
leppie13-Jun-08 21:49 
GeneralRe: Near-static class Pin
PIEBALDconsult14-Jun-08 4:39
mvePIEBALDconsult14-Jun-08 4:39 
AnswerRe: Near-static class Pin
Lutosław14-Jun-08 22:00
Lutosław14-Jun-08 22:00 
GeneralRe: Near-static class Pin
PIEBALDconsult15-Jun-08 7:31
mvePIEBALDconsult15-Jun-08 7:31 
AnswerRe: Near-static class Pin
#realJSOP15-Jun-08 3:49
professional#realJSOP15-Jun-08 3: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.