Click here to Skip to main content
15,349,320 members
Home / Discussions / C#
   

C#

 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming12-May-22 0:19
mveRichard Deeming12-May-22 0:19 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 1:12
mveBillWoodruff12-May-22 1:12 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming12-May-22 2:18
mveRichard Deeming12-May-22 2:18 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 2:32
mveBillWoodruff12-May-22 2:32 
AnswerRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard MacCutchan11-May-22 3:19
mveRichard MacCutchan11-May-22 3:19 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 3:50
mveBillWoodruff11-May-22 3:50 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
harold aptroot11-May-22 10:28
Memberharold aptroot11-May-22 10:28 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 17:34
mveBillWoodruff11-May-22 17:34 
Hi Harold, you got it. Thanks !
harold aptroot wrote:
intended to center around being able to return instances of a private class (which otherwise results in the dreaded "inconsistent accessibility" error)
"Generally known" ? My guess is it is not generally known ... took me quite an effort to locate any discussion of it.
harold aptroot wrote:
The code doesn't really show that in action though.
I would argue it does show that, in the use of the Add/Get-Something methods.

"Limited" ? Yes, the example shown here is a bare-bones demo of a technique for encapsulation ... of declared 'private inner classes, and of internal collections of instances of those classes,

I asked for opinions about its use because:

1) it's very unusual in my experience

2) it uses Interface in a very different way than usual.

3) it "feels" awkward to me.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 1:14
mveBillWoodruff12-May-22 1:14 
QuestionToast notification Collections crash when initializing. Pin
Maximilien9-May-22 3:12
MemberMaximilien9-May-22 3:12 
AnswerRe: Toast notification Collections crash when initializing. Pin
Gerry Schmitz9-May-22 8:26
mveGerry Schmitz9-May-22 8:26 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 2:12
MemberMaximilien10-May-22 2:12 
GeneralRe: Toast notification Collections crash when initializing. Pin
Gerry Schmitz10-May-22 7:36
mveGerry Schmitz10-May-22 7:36 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 7:59
MemberMaximilien10-May-22 7:59 
GeneralRe: Toast notification Collections crash when initializing. Pin
Gerry Schmitz10-May-22 9:30
mveGerry Schmitz10-May-22 9:30 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien11-May-22 2:43
MemberMaximilien11-May-22 2:43 
SuggestionRe: Toast notification Collections crash when initializing. Pin
Richard Deeming9-May-22 22:00
mveRichard Deeming9-May-22 22:00 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 2:12
MemberMaximilien10-May-22 2:12 
QuestionAccess of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Satheesh N9-May-22 2:13
professionalSatheesh N9-May-22 2:13 
SuggestionRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Richard Deeming9-May-22 2:34
mveRichard Deeming9-May-22 2:34 
GeneralRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Satheesh N9-May-22 23:06
professionalSatheesh N9-May-22 23:06 
GeneralRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Dave Kreskowiak10-May-22 1:36
mveDave Kreskowiak10-May-22 1:36 
AnswerRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
OriginalGriff9-May-22 3:00
mveOriginalGriff9-May-22 3:00 
QuestionHow to validate an URI ? Pin
Maximilien2-May-22 8:05
MemberMaximilien2-May-22 8:05 
AnswerRe: How to validate an URI ? Pin
OriginalGriff2-May-22 8:27
mveOriginalGriff2-May-22 8:27 

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.