Questions tagged [internal]

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.

736 questions
25
votes
3 answers

Sending DTMF tones over the uplink in-call

I'm working on a project that requires my app to be able to send DTMF tones on the voice's uplink frequency during an active call. My 2 conditions are: We don't use a customized Android platform We don't need to root the phone I've spent several…
Simon McCorkindale
  • 251
  • 1
  • 3
  • 3
25
votes
3 answers

How do I implement members of internal interfaces

I have been refactoring the codebase of the project that I am currently on so that classes/interfaces which are not useful beyond the confines of the assembly should be declared as internal (rather than public). But I've run into a problem with the…
jpoh
  • 4,536
  • 4
  • 35
  • 60
24
votes
5 answers

Accessing internal members via System.Reflection?

I'm trying to Unit Test a class that has many internal functions. These obviously need testing too, but my Tests project is seperate, mainly because it covers many small, related projects. What I have so far is: FieldInfo[] _fields = …
Matthew Scharley
  • 127,823
  • 52
  • 194
  • 222
23
votes
7 answers

What is the equivalent of a 'friend' keyword in C Sharp?

What is the equivalent of a 'friend' keyword in C Sharp? How do I use the 'internal' keyword? I have read that 'internal' keyword is a replacement for 'friend' in C#. I am using a DLL in my C# project that I have the source code for and yet I do not…
xarzu
  • 8,657
  • 40
  • 108
  • 160
23
votes
4 answers

Access to internal classes from another project

I'm wondering if it's possible to access internal class variables from other project in c#. I know that is impossible in regular use, I explain it below. I have one project (P1 [class library]) containing those classes... internal class Settings { …
Adam Mrozek
  • 1,410
  • 4
  • 26
  • 49
20
votes
3 answers

Cannot create a Mock class for an internal type using Rhino Mocks

I am using Rhino Mocks as a mocking framework for unit testing. I have a class called Subject which is the class I want to test. It has a dependency on IStore. IStore is defined as follows: //internal interface : has InternalsVisible to both…
Santhosh
  • 6,547
  • 15
  • 56
  • 63
20
votes
2 answers

In .NET, what is the internal implementation of a delegate?

I understand that a declaration of a delegate is something like this: public delegate int PerformCalculation(int x, int y); However, there must be more going on. The purpose of the delegate is to provide a pointer to a method, and to do that you…
richard
  • 12,263
  • 23
  • 95
  • 151
20
votes
2 answers

What does a public constructor on an internal class mean

I've seen some C# code that declares a class with an internal modifier, with a public constructor: internal class SomeClass { public SomeClass() { } } What is the point of having a public constructor, if the visibility of the entire…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
19
votes
11 answers

Heroku giving 500 error with little information + Internal Server Error

Heroku showing this message on the page: "internal server error" This error is showing in console: GET…
Himanshu Rana
  • 191
  • 1
  • 1
  • 3
19
votes
6 answers

Can a videoview play a video stored on internal storage?

I'm trying to provide my users with the ability to use either external or internal storage. I'm displaying both images and videos (of a scientific nature). When storing the media on the SD card, all is fine. But when I store the media internally,…
shellman
  • 193
  • 1
  • 1
  • 6
19
votes
2 answers

Internal property setters in C#

I'm trying to figure out a good way to approach this. I have a Customer class which implements the ICustomer interface. This interface has a number of properties in it: public interface ICustomer { string FirstName {get; set;} string…
larryq
  • 15,713
  • 38
  • 121
  • 190
18
votes
6 answers

Swift 3: The difference between Public and Internal access modifiers?

I read the Apple's reference about access modifiers in Swift 3. I read also about the same on stackoverflow but I didn't get an answer as the person who asked. As I understood correctly, there are four levels: Open,…
devshok
  • 737
  • 1
  • 8
  • 19
18
votes
6 answers

Where is Android Emulator Internal Storage

I have an error due to the contents of a file stored in internal storage on my Android Emulator. (I wrote it to file). Is there a way I can view the internal storage used by my app in windows? I've searched through my whole project folder, sdk,…
Eduardo
  • 6,900
  • 17
  • 77
  • 121
17
votes
7 answers

Android create folders in Internal Memory

Is there any way/ is it allowed to create folders in Internal Memory in Android. Example : - data -- com.test.app (application's main package) ---databases (database files) ---files (private files for application) ---shared_prefs (shared…
Android-Droid
  • 14,365
  • 41
  • 114
  • 185
17
votes
3 answers

how to serialize an object of android.graphics.Path

I'm trying to store objects of Android.graphics.Path in internal device memory. Does anyone know how to serialize a android.graphics.Path object? And also, is there any other way of storing a Path object? Thanks.
sunchips
  • 191
  • 1
  • 1
  • 5
1
2
3
49 50