New tests.
[mono.git] / mcs / class / System.Core / System / TimeZoneInfo.AdjustmentRule.cs
index cf4085f3c696e4b2a20bd3b38e05b5be17ed019b..1ec0e11244a15c2bf54d94b135580d3f91bc161c 100644 (file)
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#if (INSIDE_CORLIB && NET_4_0) || (NET_3_5 && !NET_4_0)
+#if (INSIDE_CORLIB && (NET_4_0 || MOONLIGHT)) || (MONOTOUCH && !INSIDE_CORLIB) || (NET_3_5 && !NET_4_0 && !BOOTSTRAP_NET_4_0)
 
+using System.Runtime.CompilerServices;
 using System.Runtime.Serialization;
 
 namespace System
 {
        public sealed partial class TimeZoneInfo {
                [SerializableAttribute]
+#if NET_4_0 || BOOTSTRAP_NET_4_0
+               [TypeForwardedFrom (Consts.AssemblySystemCore_3_5)]
+#elif MOONLIGHT
+               [TypeForwardedFrom (Consts.AssemblySystem_Core)]
+#endif
                public sealed class AdjustmentRule : IEquatable<TimeZoneInfo.AdjustmentRule>, ISerializable, IDeserializationCallback
                {
                        DateTime dateEnd;
@@ -119,12 +125,19 @@ namespace System
                                        daylightTransitionEnd.GetHashCode ();
                        }
                                        
+#if NET_4_0
+                       void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
+#else
                        public void GetObjectData (SerializationInfo info, StreamingContext context)
+#endif
                        {
                                throw new NotImplementedException ();
                        }
-       
+#if NET_4_0
+                       void IDeserializationCallback.OnDeserialization (object sender)
+#else
                        public void OnDeserialization (object sender)
+#endif
                        {
                                throw new NotImplementedException ();
                        }