The Labs \ Source Viewer \ SSCLI \ Microsoft.JScript \ ContinueOutOfFinally

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. namespace Microsoft.JScript
  16. {
  17.    
  18.     using System;
  19.     using System.Security.Permissions;
  20.     using System.Runtime.Serialization;
  21.    
  22.     [Serializable()]
  23.     public sealed class ContinueOutOfFinally : ApplicationException
  24.     {
  25.         public int target;
  26.        
  27.         public ContinueOutOfFinally() : this(0)
  28.         {
  29.         }
  30.        
  31.         public ContinueOutOfFinally(int target)
  32.         {
  33.             this.target = target;
  34.         }
  35.        
  36.         public ContinueOutOfFinally(string m) : base(m)
  37.         {
  38.         }
  39.        
  40.         public ContinueOutOfFinally(string m, Exception e) : base(m, e)
  41.         {
  42.         }
  43.        
  44.         private ContinueOutOfFinally(SerializationInfo s, StreamingContext c) : base(s, c)
  45.         {
  46.             this.target = s.GetInt32("Target");
  47.         }
  48.        
  49.         [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
  50.         public override void GetObjectData(SerializationInfo s, StreamingContext c)
  51.         {
  52.             base.GetObjectData(s, c);
  53.             s.AddValue("Target", this.target);
  54.         }
  55.     }
  56. }

Developer Fusion