Hello,

  string path =
> Environment.GetFolderPath(Environment.SpecialFolder.Personal);
>   NSDictionary dictionary =
> NSFileManager.DefaultManager.GetFileSystemAttributes(path);
>   NSNumber number =
>
> (NSNumber)dictionary.ObjectForKey(NSObject.FromObject(NSFileManager.SystemFreeSize));
>   ulong freeBytes = number.UInt64Value;
>

Ouch.   That is so incredibly complicated, use this instead:

var attrs = NSFileManager.DefaultManager.GetFileSystemAttributes(path);
ulong freeBytes = attrs.FreeSize;

Miguel
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to