Exemplo n.º 1
0
        private void a()
        {
            int num = 0;

            while (true)
            {
                try
                {
                    string path = this.A(num);
                    File.Delete(path);
                    this.A = File.CreateText(path);
                    this.A(num + 1);
                    return;
                }
                catch (SystemException)
                {
                }
                if (num > 100)
                {
                    break;
                }
                num++;
            }
            throw new l1();
        }
Exemplo n.º 2
0
 public static void A()
 {
     if (n1.A != null)
     {
         n1.A.Dispose();
         n1.A = true;
     }
 }
Exemplo n.º 3
0
 private static n1 A()
 {
     if (n1.A == null)
     {
         n1.A = new n1();
     }
     return(n1.A);
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     try
     {
         this.A.Dispose();
     }
     catch (ObjectDisposedException)
     {
     }
     n1.A   = null;
     this.A = null;
 }
Exemplo n.º 5
0
        public static void A(Exception ex)
        {
            TextWriter a    = n1.A().A;
            string     text = ex.GetType().Name + ": " + ex.Message + "\n";

            if (ex.StackTrace != null)
            {
                text += ex.StackTrace;
                text += "\n";
                if (n1.A == null)
                {
                    n1.A = "";
                    string pathRoot = Path.GetPathRoot(Environment.CurrentDirectory);
                    string text2    = ") in ";
                    int    num      = text.IndexOf(text2 + pathRoot);
                    if (num >= 0)
                    {
                        num += text2.Length;
                        int num2 = text.IndexOf(":", num + pathRoot.Length);
                        if (num2 > num)
                        {
                            n1.A = text.Substring(num, num2 - num);
                        }
                    }
                }
                if (n1.A.Length > 0)
                {
                    string text3 = y1.a(j1.e(), n1.A);
                    if (!string.IsNullOrEmpty(text3))
                    {
                        text = text.Replace(text3, "");
                    }
                }
            }
            a.WriteLine(text);
            a.Flush();
        }