consider this scenario
Public static Class GlobalParam
{
//static classes strings int and more...
class NoneStaticClass
{
//some noneStatic params
}
}
in another class
( none static ) I call for an instance of NoneStaticClass
in this fashion
GlobalParam.noneStaticClass NSC = new GlobalParam.noneStaticClass();
//some manipulation on NSC params
Later I use Method Like that
void DoSomething(GlobalParam.noneStaticClass nsc)
{
GlobalParam.noneStaticClass NewNSC = nsc
//Some manipulation in NewNSC
}
now when I check the data stored in NSC I can clearly that it has been changed , why is that ? does putting none static class inside a static is not correct in some way ?