mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-27 06:35:51 +00:00
32aa6d0788
* sample/gnomevfs/*.cs : s/Test.Gnome.VFS/TestGnomeVfs to avoid namespace collision problems with current mcs. svn path=/trunk/gtk-sharp/; revision=38788
26 lines
518 B
C#
26 lines
518 B
C#
using Gnome.Vfs;
|
|
using System;
|
|
using System.Reflection;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace TestGnomeVfs {
|
|
public class TestMime {
|
|
static void Main (string[] args)
|
|
{
|
|
if (args.Length != 1) {
|
|
Console.WriteLine ("Usage: TestSync <uri>");
|
|
return;
|
|
}
|
|
|
|
Gnome.Vfs.Vfs.Initialize ();
|
|
|
|
Gnome.Vfs.Uri uri = new Gnome.Vfs.Uri (args[0]);
|
|
|
|
MimeType mimetype = uri.MimeType;
|
|
Console.WriteLine ("Uri `{0}' looks like ", uri, mimetype.Name);
|
|
|
|
Gnome.Vfs.Vfs.Shutdown ();
|
|
}
|
|
}
|
|
}
|