Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
i have 3 namespace
namespace->namespace->namespace
UNIVERSE->PLANETS->EARTH
I want to SHARE a variable (string human) in 3 namespace,i know i can write class or interface but i search new solution?
C#
var NAMESPACE={
        UNIVERSE:{
              PLANETS:{
                      EARTH:{
                             HUMANBEINGS:{
                                    var man = function(){
                                              alert('I am man.')
                                   }
                                    var woman = function(){
                                              alert('I am woman.')
                                   }
                             }
                      }
               }
        }

}


find way to eject all var in namespace is possible or not?
Posted
Updated 23-Oct-14 6:31am
v4

This makes no sense at all.

What is "shear" a variable? I've been writing code for 35 years and never heard of the term.

Now, if you were to SHARE a variable with something, that's a different story.

I have also never seen C# code written like that, so it currently means nothing to me.
 
Share this answer
 
Comments
majid torfi 23-Oct-14 12:23pm    
i mean,find way to eject all var in namespace is possible or not?
Dave Kreskowiak 23-Oct-14 12:53pm    
"eject all variables in namespace"?? That makes no sense either.

I have no idea what you're talking about. This is probably because you're not using the correct terminology.
majid torfi 23-Oct-14 13:04pm    
thanks .
I think first off you are confusing namespace and class names. That being said, just make a static variable in one namespace and reference it. IE Humanbeings.gender, or a static method like Humanbeings.GetGender();
 
Share this answer
 
Comments
majid torfi 23-Oct-14 10:54am    
no i want hack *.dll file and jump to data in class (hack pass)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900