Timeline for Is it good practice to make everything internal in C#?
Current License: CC BY-SA 4.0
Post Revisions
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 2, 2019 at 8:59 | vote | accept | Tvde1 | ||
| Sep 1, 2019 at 16:55 | comment | added | Robert Harvey | Then I'll make my position clear. Classes should be marked internal when you want them to be visible only in the assembly in which they reside. [sound of mic drop] | |
| Sep 1, 2019 at 16:52 | comment | added | Helena | @RobertHarvey yes | |
| Sep 1, 2019 at 16:51 | comment | added | Robert Harvey | @Helena: Well, yes. That follows. Are you taking the title of the question literally? Clearly everything can't be internal; there would be nothing to do. | |
| Sep 1, 2019 at 16:49 | comment | added | Helena | @RobertHarvey yes, but somewhere in the assembly there must be a public method. | |
| Aug 31, 2019 at 15:34 | comment | added | Robert Harvey | @helena: Within assemblies. The boundary is defined between assemblies. | |
| Aug 30, 2019 at 16:33 | comment | added | Erik Eidt | Note that you can make them internal by omitting an access modifier, which I do on top-level classes and structs in my applications; then explicitly use either public or private for fields and methods. | |
| Aug 30, 2019 at 14:31 | comment | added | Helena | If everything is internal, how do you call the code? | |
| Aug 30, 2019 at 14:13 | history | edited | Robert Harvey | CC BY-SA 4.0 |
deleted 6 characters in body
|
| Aug 30, 2019 at 11:57 | answer | added | dynamiclynk | timeline score: 0 | |
| Aug 30, 2019 at 11:30 | review | Close votes | |||
| Sep 6, 2019 at 3:05 | |||||
| Aug 30, 2019 at 11:22 | answer | added | Ewan | timeline score: 10 | |
| Aug 30, 2019 at 11:11 | history | edited | Tvde1 | CC BY-SA 4.0 |
added 119 characters in body
|
| Aug 30, 2019 at 11:10 | comment | added | gnat | Possible duplicate of Why not make everything private or public? | |
| Aug 30, 2019 at 11:06 | answer | added | Flater | timeline score: 6 | |
| Aug 30, 2019 at 10:59 | comment | added | Ewan | if they are not supposed to be used outside of the library... yes | |
| Aug 30, 2019 at 10:49 | history | asked | Tvde1 | CC BY-SA 4.0 |