1
vote
3answers
103 views

Internal class access modifier doesnt work?

I really dont understand why, but it seems like the internal access modifier doesn't work :S I've looked at this tutorial: http://msdn.microsoft.com/en-us/library/7c5ka91b(v=vs.110).aspx But for me, ...
0
votes
1answer
79 views

java external threads (outside the class file it's used)

The question is, is it possible to have an external thread or do they have to be internal to the class they run in. If so could someone show me how. (external thread)
1
vote
3answers
67 views

If function called internally

Is there any way of identifying if a function was called from within the same class in PHP? Besides using something like debug_backtrace ? Update: This is what I'm currently doing: class Alex { ...
4
votes
1answer
145 views

How to hide a class using internal keyword? [duplicate]

Possible Duplicate: c# internal abstract class, how to hide usage outside assembly I have a common assembly/project that has several abstract classes. When I create a new assembly, the ...
1
vote
1answer
45 views

Accessible from only one class

I have a class and a method in it. The method's access modifier is now private but it can be changed. Now i just want the method to be seen only one another class. the other class and my class are ...
0
votes
0answers
195 views

Asp.net MVC3 access internal class from razor View

This is not a duplicated question. I've already searched on SO but I need a different thing. Is today a way to access an internal class from Razor View, I know that the assembly must be visible and ...
0
votes
3answers
260 views

How to extend a PHP class within the class

I'm rather new to OOP and have a question about how to best deal with using one class name, but then adding functionality to that class internally based on a parameter passed. Basic story is I have ...
7
votes
4answers
415 views

What is the meaning of a public member of an internal class?

For example: internal class C { public void M() { Console.WriteLine("foo"); } } To me, that reads "a method that can be accessed by anyone, regardless of assembly living inside ...
5
votes
6answers
2k views

Is there anything like an Internal class in Java?

In C# you can mark a class as internal so that it is only accessible from within the same package. Is there anything similar in Java?
2
votes
3answers
213 views

How to define a struct whose members can be accessed by any internal classes but can only be set by a particular (internal) class?

How to define a struct whose members can be accessed by any internal classes via properties but can only be set by a particular internal class? (If it is possible.) If it is not possible, is there a ...
21
votes
4answers
3k views

Public and Internal members in an Internal class?

Ok, so this may be a bit of a silly question, and there's certainly the obvious answer, but I was curious if I've missed any subtleties here. Is there any difference in terms of visibility/usability ...
1
vote
3answers
1k views

C# class design without using “Internal” or “Static”?

I have a bunch of data I want to instantiate in a class, and for each variable I want to ensure a specific set of methods are also defined. IE: [TypeA] VarA [TypeB] VarB [TypeC] VarC FA1() which is ...
15
votes
2answers
9k views

How to access internal class using Reflection

How can I access an internal class of an assembly? Say I want to access System.ComponentModel.Design.DesignerHost. Here the DesignerHost is an internal and sealed class. How can I write a code to ...
20
votes
4answers
25k views

C# - How to access internal class from external assembly

Having an assembly which I cannot modify (vendor-supplied) which have a method returning an object type but is really of an internal type. How can I access the fields and/or methods of the object ...