Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parse complex numbers from string Pin
jsc4217-May-22 5:05
professionaljsc4217-May-22 5:05 
GeneralRe: Parse complex numbers from string Pin
jsc4217-May-22 22:16
professionaljsc4217-May-22 22:16 
Question"interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 1:25
professionalBillWoodruff11-May-22 1:25 
AnswerRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
OriginalGriff11-May-22 2:15
mveOriginalGriff11-May-22 2:15 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 3:29
professionalBillWoodruff11-May-22 3:29 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming11-May-22 6:16
mveRichard Deeming11-May-22 6:16 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 17:20
professionalBillWoodruff11-May-22 17:20 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
Richard Deeming11-May-22 21:37
mveRichard Deeming11-May-22 21:37 
BillWoodruff wrote:
Wrong.
Are you sure about that?

With the nested class:
NestedClassExample1 | C# Online Compiler | .NET Fiddle[^]

Without the nested class:
[Fork] NestedClassExample1 | C# Online Compiler | .NET Fiddle[^]

Both compile and run without errors, and produce identical output.

The AddSomething and GetSomething methods depend on the interface, not the unused nested class.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff11-May-22 23:33
professionalBillWoodruff11-May-22 23:33 
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
professionalBillWoodruff12-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
professionalBillWoodruff12-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
professionalBillWoodruff11-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
harold 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
professionalBillWoodruff11-May-22 17:34 
GeneralRe: "interface hack" to make private nested class instances available to outer class methods ? Pin
BillWoodruff12-May-22 1:14
professionalBillWoodruff12-May-22 1:14 
QuestionToast notification Collections crash when initializing. Pin
Maximilien9-May-22 3:12
Maximilien9-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
Maximilien10-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
Maximilien10-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
Maximilien11-May-22 2:43 

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.