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

  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 BreakOutOfFinally : ApplicationException
  24.     {
  25.         public int target;
  26.        
  27.         public BreakOutOfFinally(int target)
  28.         {
  29.             this.target = target;
  30.         }
  31.        
  32.         public BreakOutOfFinally(string m) : base(m)
  33.         {
  34.         }
  35.        
  36.         public BreakOutOfFinally(string m, Exception e) : base(m, e)
  37.         {
  38.         }
  39.        
  40.         private BreakOutOfFinally(SerializationInfo s, StreamingContext c) : base(s, c)
  41.         {
  42.             this.target = s.GetInt32("Target");
  43.         }
  44.        
  45.         [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
  46.         public override void GetObjectData(SerializationInfo s, StreamingContext c)
  47.         {
  48.             base.GetObjectData(s, c);
  49.             s.AddValue("Target", this.target);
  50.         }
  51.        
  52.     }
  53. }

Developer Fusion