Click here to Skip to main content
15,792,841 members
Home / Discussions / C#
   

C#

 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming11-May-22 7:16
mveRichard Deeming11-May-22 7:16 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 18:20
professionalBillWoodruff11-May-22 18:20 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming11-May-22 22:37
mveRichard Deeming11-May-22 22:37 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 0:33
professionalBillWoodruff12-May-22 0:33 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming12-May-22 1:19
mveRichard Deeming12-May-22 1:19 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 2:12
professionalBillWoodruff12-May-22 2:12 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming12-May-22 3:18
mveRichard Deeming12-May-22 3:18 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 3:32
professionalBillWoodruff12-May-22 3:32 
Thanks !
Richard Deeming wrote:
If the collection class is public, then trying to further restrict the type ...
In this case, the 'OuterClass is public; the whole point of this (encapsulation) is allowing access to the internal collections inside that outer class only by methods I expose.

I think you are reading into this some broader issue.
Richard Deeming wrote:
... to those in the current assembly, or an approved list of assemblies, is usually a sign of a broken design.
I can easily imagine a scenario where a design of an outer class with private internal classes would be very useful. But, that is not relevant here.

cheers, Bill
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

AnswerRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard MacCutchan11-May-22 4:19
mveRichard MacCutchan11-May-22 4:19 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 4:50
professionalBillWoodruff11-May-22 4:50 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
harold aptroot11-May-22 11:28
harold aptroot11-May-22 11:28 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 18:34
professionalBillWoodruff11-May-22 18:34 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 2:14
professionalBillWoodruff12-May-22 2:14 
QuestionToast notification Collections crash when initializing. Pin
Maximilien9-May-22 4:12
Maximilien9-May-22 4:12 
AnswerRe: Toast notification Collections crash when initializing. Pin
Gerry Schmitz9-May-22 9:26
mveGerry Schmitz9-May-22 9:26 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 3:12
Maximilien10-May-22 3:12 
GeneralRe: Toast notification Collections crash when initializing. Pin
Gerry Schmitz10-May-22 8:36
mveGerry Schmitz10-May-22 8:36 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 8:59
Maximilien10-May-22 8:59 
GeneralRe: Toast notification Collections crash when initializing. Pin
Gerry Schmitz10-May-22 10:30
mveGerry Schmitz10-May-22 10:30 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien11-May-22 3:43
Maximilien11-May-22 3:43 
GeneralRe: Toast notification Collections crash when initializing. Pin
Sayyid Sadik12-Dec-22 5:35
Sayyid Sadik12-Dec-22 5:35 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien12-Dec-22 5:46
Maximilien12-Dec-22 5:46 
SuggestionRe: Toast notification Collections crash when initializing. Pin
Richard Deeming9-May-22 23:00
mveRichard Deeming9-May-22 23:00 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 3:12
Maximilien10-May-22 3: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 3:13
professionalSatheesh N9-May-22 3:13 

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.