public VariableListSave GetVariableList(string variableName) { switch (ContainerType) { case VariableContainerType.InstanceSave: return(mInstanceSave.GetVariableListFromThisOrBase(ElementStack.Last().Element, variableName)); case VariableContainerType.StateSave: return(mStateSave.GetVariableListRecursive(variableName)); //break; } throw new NotImplementedException(); }