Questions tagged [internal-class]
19 questions
                    
                    15
                    
            votes
                
                4 answers
            
        How do you "override" an Internal Class in C#?
There's something I want to customize in the System.Web.Script.Services.ScriptHandlerFactory and other .NET stuff inside an internal class.  Unfortunately, it's an internal class.  What options do I have when trying to customize a method in this…
        
        danmine
        
- 11,325
 - 17
 - 55
 - 75
 
                    12
                    
            votes
                
                7 answers
            
        Is it a bad programming practice to have "Public" members inside an "Internal" class?
Wouldn't it be more specific and appropriate if I only keep "protected", "internal" and "private" members (field, method, property, event) in a class which is declared as "internal"?
I have seen this practice (having "public" members in an…
        
        Manish Basantani
        
- 16,931
 - 22
 - 71
 - 103
 
                    5
                    
            votes
                
                1 answer
            
        Accessing an internal class from a different Dll file
I am confused by some code that shouldn't be working, but oddly enough, is working and I know I'm simply overlooking something obvious. I'm looking at the source code for the Accord.NET framework and I downloaded it and its compiling just fine, but…
        
        Icemanind
        
- 47,519
 - 50
 - 171
 - 296
 
                    2
                    
            votes
                
                1 answer
            
        Are (a lot of) internal methods avoidable? (interface, factory pattern)
I'm currently working on a bot and have about 8 seperate classes for different dialogs (all in the same namespace!). They all contain different Tasks and because of this I have ran into a little problem.
I'm wondering what the best practice would…
        
        Noor VE
        
- 67
 - 7
 
                    2
                    
            votes
                
                2 answers
            
        Internal class and access to external members
I always thought that internal class has access to all data in its external class but having code:
template
class Vector
{
 template
 friend
std::ostream& operator<<(std::ostream& out, const Vector& obj);
private:
 T** myData_;
…   
        
        There is nothing we can do
        
- 23,727
 - 30
 - 106
 - 194
 
                    2
                    
            votes
                
                3 answers
            
        the infame Goto, Java, automatic code
Imagine you have a Java code like this :
public class MyClass {
    public static Object doSmthg(Object A,Object B){
        if(smthg){ //if is given has an example, it can be any thing else
            doSmthg;
            GOTO label;
        }
   …
        
        rvlander
        
- 91
 - 2
 - 7
 
                    1
                    
            vote
                
                1 answer
            
        Migration from Microsoft.Azure.DocumentDB to Microsoft.Azure.Cosmos package while current class library is in .NetFramwork 4.7.2
My current project class library is in .Net Framework 4.7.2 (target framework) and we are using Microsoft.Azure.DocumentDB package. we have to update to version 3 of Azure
Questions
Does we will be able to do update into Microsoft.Azure.Cosmos…
        
        Alfiya
        
- 11
 - 2
 
                    1
                    
            vote
                
                1 answer
            
        LayoutInflater.java with internal errros
Inside my "native" LayoutInflater.java there are several imports that aren't working, causing several errors warnings. I've noticed it after Android Studio asked to update something but I can't remember what was it. By the way, even after formating…
        
        Fernando Rezende
        
- 13
 - 2
 
                    1
                    
            vote
                
                3 answers
            
        How can I implement internal abstract member classes in c++?
An abstract class has internal virtual functions.
Can an abstract class have internal virtual classes to be implemented later?
I tried the following:
#include 
using namespace std;
class C1 {
    public:
        class Child {
       … 
        
        Zehui Lin
        
- 186
 - 9
 
                    1
                    
            vote
                
                3 answers
            
        Extension Method for Interface in Internal Class
I am currently trying to write extensions to Dynamic Linq. For that I need to add a method signature to the IEnumerableSignatures interface located in the internal class ExpressionParser. 
internal class ExpressionParser
{
    interface…
        
        hakai
        
- 329
 - 3
 - 13
 
                    1
                    
            vote
                
                1 answer
            
        Add a class inside a JDesktopPane
I've been searching for this problem but it doesn't work for me.
What I did is that I have directories like this
|-> Games (folder)
|----> GamesCombined.java and classes
|----> games (folder)
|--------> pacman (folder)
|------------> PacmanGame.java…
        
        Juvar Abrera
        
- 465
 - 3
 - 10
 - 21
 
                    0
                    
            votes
                
                2 answers
            
        Workaround for using the internal class AboutHandler in RCP for which access is discouraged
I'm aware of why using internal classes is discouraged, and am generally happy to stick to not using them.
However, in my RCP I want to use a command rather than an action to display the About dialog. Hence I have extended…
        
        s.d
        
- 4,017
 - 5
 - 35
 - 65
 
                    0
                    
            votes
                
                1 answer
            
        constructing a class with a struct inside of it c++
So I have a class which holds a struct inside its private variables and inside this struct I have an array where the size of the array is only determined after the construction of the class.
template  
class btree {
  public:
   … 
        
        SNpn
        
- 2,157
 - 8
 - 36
 - 53
 
                    0
                    
            votes
                
                2 answers
            
        Android: How do I create broadcast receiver as an internal class of an activity
I have the following activity class:
public class Main extends TabActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
    public class LocationUpdateReceiver extends…
        
        binW
        
- 13,220
 - 11
 - 56
 - 69
 
                    0
                    
            votes
                
                0 answers
            
        Get internal sub class properties parent class name
Having the following Helper static class
internal static class Helper
{
    internal static class Properties
    {
        internal static class P1
        {
            public const string set1 = "abcd"
            public const string set2 =…
        
        Norbert Forgacs
        
- 605
 - 1
 - 8
 - 27