Переглянути джерело

use MOONLIGHT symbol

svn path=/trunk/mcs/; revision=153657
Jb Evain 16 роки тому
батько
коміт
d229615ecc

+ 12 - 0
mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog

@@ -1,3 +1,15 @@
+2010-03-16  Jb Evain  <[email protected]>
+
+	* IsolatedStorageFileEnumerator.cs
+	* MoonIsolatedStorageFileStream.cs
+	* MoonIsolatedStorageFile.cs
+	* MoonIsolatedStorage.cs
+	* IsolatedStorageScope.cs
+	* IsolatedStorageFileStream.cs
+	* IsolatedStorage.cs
+	* IsolatedStorageFile.cs:
+		use MOONLIGHT symbol to disambiguate MonoTouch and Moonlight code.
+
 2009-11-01  Sebastien Pouliot  <[email protected]>
 
 	* MoonIsolatedStorageFile.cs: Add new CheckSearchPattern 

+ 2 - 2
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs

@@ -28,7 +28,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
 using System.Globalization;
 using System.Reflection;
 using System.Runtime.InteropServices;
@@ -153,5 +153,5 @@ namespace System.IO.IsolatedStorage {
 		public abstract void Remove ();
 	}
 }
-/* NET_2_1 */
+/* MOONLIGHT */
 #endif 

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs

@@ -27,7 +27,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
 using System.Collections;
 using System.Reflection;
 using System.Runtime.InteropServices;

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileEnumerator.cs

@@ -28,7 +28,7 @@
 
 using System.Collections;
 
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
 
 namespace System.IO.IsolatedStorage {
 

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileStream.cs

@@ -27,7 +27,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
 using System.Diagnostics;
 using System.Globalization;
 using System.Reflection;

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageScope.cs

@@ -41,7 +41,7 @@ namespace System.IO.IsolatedStorage {
 
 		None = 0,
 		User = 1,
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
 		// Available in Silverlight
 		Application = 32,
 #else

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/MoonIsolatedStorage.cs

@@ -26,7 +26,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
 
 using System;
 using System.IO;

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/MoonIsolatedStorageFile.cs

@@ -28,7 +28,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
 using System;
 using System.IO;
 using System.Runtime.InteropServices;

+ 1 - 1
mcs/class/corlib/System.IO.IsolatedStorage/MoonIsolatedStorageFileStream.cs

@@ -28,7 +28,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
 using System;
 using System.IO;