System.Runtime.Serialization.DateTimeFormat
authorMartin Baulig <martin.baulig@xamarin.com>
Tue, 5 Mar 2013 23:33:08 +0000 (18:33 -0500)
committerMartin Baulig <martin.baulig@xamarin.com>
Tue, 12 Mar 2013 21:23:00 +0000 (17:23 -0400)
mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/DateTimeFormat.cs [new file with mode: 0644]
mcs/class/System.Runtime.Serialization/mobile_System.Runtime.Serialization.dll.sources
mcs/class/System.Runtime.Serialization/net_4_5_System.Runtime.Serialization.dll.sources

diff --git a/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/DateTimeFormat.cs b/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/DateTimeFormat.cs
new file mode 100644 (file)
index 0000000..3ccc33a
--- /dev/null
@@ -0,0 +1,57 @@
+// Authors:
+//      Martin Baulig (martin.baulig@xamarin.com)
+//
+// Copyright 2012 Xamarin Inc. (http://www.xamarin.com)
+//
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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_4_5
+using System;
+using System.Globalization;
+
+namespace System.Runtime.Serialization {
+       [MonoTODO]
+       public class DateTimeFormat {
+               public DateTimeFormat (string formatString)
+               {
+                       throw new InvalidOperationException ();
+               }
+               
+               public DateTimeFormat (string formatString, IFormatProvider formatProvider)
+               {
+                       throw new InvalidOperationException ();
+               }
+               
+               public DateTimeStyles DateTimeStyles {
+                       get { throw new InvalidOperationException (); }
+                       set { throw new InvalidOperationException (); }
+               }
+
+               public IFormatProvider FormatProvider {
+                       get { throw new InvalidOperationException (); }
+               }
+
+               public string FormatString {
+                       get { throw new InvalidOperationException (); }
+               }
+       }
+}
+#endif
index e3a139b4e23980f86994f5255bdf9851b04007d7..faabff70fc738d6edc599c126b6ed20bdeadba59 100644 (file)
@@ -5,6 +5,7 @@ System.Runtime.Serialization/DataContractAttribute.cs
 System.Runtime.Serialization/DataContractResolver.cs
 System.Runtime.Serialization/DataContractSerializer.cs
 System.Runtime.Serialization/DataMemberAttribute.cs
+System.Runtime.Serialization/DateTimeFormat.cs
 System.Runtime.Serialization/EnumMemberAttribute.cs
 System.Runtime.Serialization/ExportOptions.cs
 System.Runtime.Serialization/ExtensionDataObject.cs
index 4560705d05c3647002050976e685ea806305523f..19e5f6d7807eaacd3dfcabea756566a1eb742559 100644 (file)
@@ -1 +1,2 @@
 #include net_4_0_System.Runtime.Serialization.dll.sources
+System.Runtime.Serialization/DateTimeFormat.cs