Fix restore typo
[mono.git] / mcs / class / corlib / System.Security / HostProtectionException.cs
index 83929ea62212570601a670639d2cb7d48092e021..8d828bc216e8d522ed755093880ce2cc2bf8af85 100644 (file)
@@ -26,7 +26,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
@@ -59,6 +58,8 @@ namespace System.Security {
                public HostProtectionException (string message, HostProtectionResource protectedResources, HostProtectionResource demandedResources)
                        : base (message)
                {
+                       this._protected = protectedResources;
+                       this._demanded = demandedResources;
                }
 
                protected HostProtectionException (SerializationInfo info, StreamingContext context)
@@ -88,5 +89,3 @@ namespace System.Security {
                }
        }
 }
-
-#endif