Gregory Pakosz Gregory Pakosz - 1 year ago 116
C# Question

Metro class library, FileInfo replacement?

In one of our components ported from Java to C#, we used

as an equivalent for Java's

Now we're working towards making that class library available to Metro applications and we have to pass the certification obviously.

What's a good replacement for
in .NET Framework 4.5 core profile?

dtb dtb
Answer Source

The StorageFile Class in the Windows.Storage Namespace.

StorageFile class

Represents a file. Provides information about the file and its content, and ways to manipulate them.


var file = await StorageFile.GetFileFromPathAsync(path);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download