Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inherit an internal class to a public class Pin
amit sahu2016-Aug-10 0:13
amit sahu2016-Aug-10 0:13 
AnswerRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 0:39
sitebuilderLuc Pattyn16-Aug-10 0:39 
GeneralRe: Inherit an internal class to a public class Pin
amit sahu2016-Aug-10 1:02
amit sahu2016-Aug-10 1:02 
GeneralRe: Inherit an internal class to a public class Pin
OriginalGriff16-Aug-10 1:06
mveOriginalGriff16-Aug-10 1:06 
GeneralRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 1:14
sitebuilderLuc Pattyn16-Aug-10 1:14 
GeneralRe: Inherit an internal class to a public class Pin
OriginalGriff16-Aug-10 1:21
mveOriginalGriff16-Aug-10 1:21 
GeneralRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 1:24
sitebuilderLuc Pattyn16-Aug-10 1:24 
GeneralRe: Inherit an internal class to a public class Pin
dave.dolan16-Aug-10 9:05
dave.dolan16-Aug-10 9:05 
Assembly AND namespace. You cannot use someone else's internal classes by simply adding your own version of that namespace in your own assembly. The whole idea is to make it so that ONLY the guy who wrote the original method can decide how to use it. Not so that only people who know what namespace it is can use it. This is basic .net 101, and has been true since version 1.0.

edit: one more qualification, this applies to 'internal' classes that do not specify the 'internal' modifier. If you specify the 'internal' modifier you can use them within any namespace as long as you reference the correct one, but STILL only within the original assembly. So for example a class declared as

class MyClass(){ } can only be referenced in its original namespace and assembly.

However, one declared as

internal class MyClass() { } can be referenced by anything in the assembly.
GeneralRe: Inherit an internal class to a public class Pin
OriginalGriff16-Aug-10 1:23
mveOriginalGriff16-Aug-10 1:23 
GeneralRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 1:28
sitebuilderLuc Pattyn16-Aug-10 1:28 
AnswerRe: Inherit an internal class to a public class Pin
Łukasz Nowakowski16-Aug-10 3:24
Łukasz Nowakowski16-Aug-10 3:24 
QuestionLearning Datasets... Pin
JollyMansArt15-Aug-10 10:28
JollyMansArt15-Aug-10 10:28 
AnswerRe: Learning Datasets... PinPopular
PIEBALDconsult15-Aug-10 11:04
mvePIEBALDconsult15-Aug-10 11:04 
GeneralRe: Learning Datasets... Pin
Dan Mos15-Aug-10 12:06
Dan Mos15-Aug-10 12:06 
QuestionRe: Learning Datasets... Pin
JollyMansArt15-Aug-10 15:14
JollyMansArt15-Aug-10 15:14 
AnswerRe: Learning Datasets... Pin
Luc Pattyn15-Aug-10 15:54
sitebuilderLuc Pattyn15-Aug-10 15:54 
GeneralRe: Learning Datasets... Pin
Keith Barrow15-Aug-10 12:20
professionalKeith Barrow15-Aug-10 12:20 
GeneralRe: Learning Datasets... Pin
Mycroft Holmes15-Aug-10 14:34
professionalMycroft Holmes15-Aug-10 14:34 
GeneralRe: Learning Datasets... Pin
PIEBALDconsult15-Aug-10 16:58
mvePIEBALDconsult15-Aug-10 16:58 
QuestionTargetInvocationException? Pin
Megidolaon15-Aug-10 8:13
Megidolaon15-Aug-10 8:13 
AnswerRe: TargetInvocationException? Pin
OriginalGriff15-Aug-10 8:26
mveOriginalGriff15-Aug-10 8:26 
GeneralRe: TargetInvocationException? Pin
Megidolaon16-Aug-10 3:29
Megidolaon16-Aug-10 3:29 
GeneralRe: TargetInvocationException? Pin
Alan N16-Aug-10 6:14
Alan N16-Aug-10 6:14 
GeneralRe: TargetInvocationException? [modified] Pin
Megidolaon16-Aug-10 15:40
Megidolaon16-Aug-10 15:40 
AnswerRe: TargetInvocationException? Pin
PIEBALDconsult15-Aug-10 8:28
mvePIEBALDconsult15-Aug-10 8:28 

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.