for diposed first, and for closed on second place.
* IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
as part of 4.0.
2010-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=157816
+2010-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * IsolatedStorageFileStream.cs: When creating the instance, we should check
+ for diposed first, and for closed on second place.
+ * IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
+ as part of 4.0.
+
2010-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* IsolatedStorageFileStream.cs: When creating our instance check that
}
[CLSCompliant(false)]
+#if NET_4_0
+ [Obsolete]
+#endif
public override ulong CurrentSize {
get { return GetDirectorySize (directory); }
}
[CLSCompliant(false)]
+#if NET_4_0
+ [Obsolete]
+#endif
public override ulong MaximumSize {
// return an ulong but default is signed long
get {
}
#if NET_4_0
+ [ComVisible (false)]
+ public static bool IsEnabled {
+ get {
+ return true;
+ }
+ }
+
internal bool IsClosed {
get {
return closed;
}
#if NET_4_0
- if (isf.IsClosed)
- throw new InvalidOperationException ("Storage needs to be open for this operation.");
if (isf.IsDisposed)
throw new ObjectDisposedException ("IsolatedStorageFile");
+ if (isf.IsClosed)
+ throw new InvalidOperationException ("Storage needs to be open for this operation.");
#endif
// ensure that the _root_ isolated storage can be (and is) created.