The internal tag should be used when the question in which this tag has been used is about the internal operation in a function, language, program, or system.
Questions tagged [internal]
736 questions
481
votes
7 answers
Internal vs. Private Access Modifiers
What is the difference between the internal and private access modifiers in C#?

Jim Fell
- 13,750
- 36
- 127
- 202
91
votes
2 answers
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 load the assembly and the type?.

dattebayo
- 2,012
- 4
- 30
- 40
84
votes
5 answers
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 between a public member declared in an internal…

Noldorin
- 144,213
- 56
- 264
- 302
57
votes
5 answers
Why can't my public class extend an internal class?
I really don't get it.
If the base class is abstract and only intended to be used to provide common functionality to public subclasses defined in the assembly, why shouldn't it be declared internal?
I don't want the abstract class to be visible to…

David
- 15,750
- 22
- 90
- 150
54
votes
6 answers
C# internal interface with internal implementation
I've struck upon something I don't really understand.
I have a project, where I have an interface that is internal. The class that implements that interface is also internal. In the implementation of the interface, I make all the members that I…

Pete
- 6,585
- 5
- 43
- 69
54
votes
7 answers
Using internal sun classes with javac
Is there a way to disable restrictions of javac 1.6.0_22 that prevent me from using JRE internal classes like sun.awt.event.* ?
I'm not looking for:
an explanation why it is forbidden.
suggestion to use different classes
suggestion to use…

Marcin Wisnicki
- 4,511
- 4
- 35
- 57
52
votes
3 answers
Static functions declared in "C" header files
For me it's a rule to define and declare static functions inside source files, I mean .c files.
However in very rare situations I saw people declaring it in the header file.
Since static functions have internal linkage we need to define it in every…

miguel azevedo
- 537
- 1
- 4
- 5
52
votes
2 answers
Accessing functions bound to event handlers with jQuery
With jQuery you can bind functions to an event triggered on a DOM object using .bind() or one of the event handler helper functions.
jQuery have to store this internally somehow and I wonder if is it possible given a DOM object, to find out which…

googletorp
- 33,075
- 15
- 67
- 82
51
votes
7 answers
Why does python `any` return a bool instead of the value?
and and or return the last element they evaluated, but why doesn't Python's built-in function any?
I mean it's pretty easy to implement oneself like this, but I'm still left wondering why.
def any(l):
for x in l:
if x:
return…

doda
- 511
- 1
- 5
- 8
48
votes
2 answers
Hiding namespaces containing only internal types in a class library?
I have a class library that has a couple of namespaces containing only internal types.
However, when using the class library in an application project, the namespaces shows up in intellisense, but of course they are empty. Is there any way for me to…

Lasse V. Karlsen
- 380,855
- 102
- 628
- 825
48
votes
6 answers
How do I read the file content from the Internal storage - Android App
I am a newbie working with Android. A file is already created in the location data/data/myapp/files/hello.txt; the contents of this file is "hello". How do I read the file's content?

Shan
- 1,081
- 1
- 12
- 35
47
votes
8 answers
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?

Svish
- 152,914
- 173
- 462
- 620
36
votes
5 answers
C# assemblies, whats in an assembly?
I'm trying to understand the internal access modifier in C#. I can't seem to understand what an assembly is exactly, and what part of my program is held inside that assembly. I was trying to make it so that a variable is accessibly only by objects…

Prodigga
- 1,457
- 1
- 22
- 37
34
votes
2 answers
How do you handle R Data internal to a package?
The R package I am developing requires several R data objects, such as pre-computed models and parameters.
Currently I have each object in the 'data' directory of the package in individual .RData files. When using the package users can use the…

Nixuz
- 3,439
- 4
- 39
- 44
27
votes
5 answers
How to create a file on Android Internal Storage?
I want to save a file on internal storage into a specific folder. My code is:
File mediaDir = new File("media");
if (!mediaDir.exists()){
mediaDir.createNewFile();
mediaDir.mkdir();
}
File f = new…

Buda Gavril
- 21,409
- 40
- 127
- 196