C# 如何从SilverLight中的独立存储中获取文件路径?

C# 如何从SilverLight中的独立存储中获取文件路径?,c#,silverlight-4.0,isolatedstorage,C#,Silverlight 4.0,Isolatedstorage,我在windows应用程序中使用反射获取文件路径,但在Silverlight中没有 下面是我使用过的代码: IsolatedStorageFile store = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null); IsolatedStorageFileStream stream = new IsolatedStorageFileStream(

我在windows应用程序中使用反射获取文件路径,但在Silverlight中没有

下面是我使用过的代码:

IsolatedStorageFile store = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);
IsolatedStorageFileStream stream  =  new IsolatedStorageFileStream("Text.log", FileMode.Create, store);         
// Retrieve the actual path of the file using reflection.
string path = stream.GetType().GetField("m_FullPath", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(stream).ToString();
Silverlight不支持私有、受保护和内部(程序集外部)反射

让我知道如何在silverlight中获取文件路径