c# - Difference between creating variables in App.xaml.cs or using PhoneApplicationService.state in WP7? -
I have seen examples and they are being used interchangebly what would benefit from using a method on the other? Apart from this, can performance make a factor between the two?
One major difference is that the runtime automatically saves the dictionary when the app is given to the grave If you have a global variable in app.excel CCS, then you have to save and restore this data.
I am not aware of the effect of any performance of a method compared to the other, but since you are handling the serialization of data in the case of global variables, then the performance is as good (or worse) ) As you would write for the serialization.
Comments
Post a Comment