Merge pull request #1179 from ludovic-henry/pr25-threadpool
[mono.git] / mcs / class / System.Web / System.Web.Security / MembershipPasswordException.cs
index c9497cec476bd6a66376f384811ff7a81c62ce5d..69c3315d0e76014bd86a9f3866dd5c666a5a41ae 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System;
 using System.Runtime.Serialization;
+using System.Runtime.CompilerServices;
 
 namespace System.Web.Security
 {
+#if NET_4_0
+       [TypeForwardedFrom ("System.Web, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+#endif
        [Serializable]
        public class MembershipPasswordException : Exception
        {
@@ -42,10 +44,10 @@ namespace System.Web.Security
                public MembershipPasswordException (string message) : base (message) {}
                public MembershipPasswordException (string message, Exception innerException) : base (message, innerException) {}
                
-               public MembershipPasswordException (SerializationInfo info, StreamingContext context): base (info, context)
+               protected MembershipPasswordException (SerializationInfo info, StreamingContext context): base (info, context)
                {
                }
        }
 }
-#endif
+