Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is hard-coded path in isolated storage classes in c sharp
Posted
Updated 29-Apr-10 18:41pm
v2

 
Share this answer
 
Do you want to know here files are stored by the isolated store? Try this:

C#
public static string GetIsoStoragePath()
{
    var path = string.Empty;
    using(var isoStore = IsolatedStorageFile.GetUserStoreForAssembly())
    {
       var rootDirProperty = isoStore.GetType().GetProperty("RootDirectory", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
      var pathAsObject = rootDirProperty.GetValue(isoStore, null);
      path = pathAsObject.ToString();
    }   
    return path;
}
 
Share this answer
 
This is an example of what happens when people read random articles but never read up on the basics. Hard coded means it's specified in code, not as a variable that can be changed, but as a static value. Consider buying some basic references and reading them.
 
Share this answer
 

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