Пример #1
0
 public void a(TextWriter A_0)
 {
     if (this.a == typeof(double))
     {
         A_0.WriteLine("d");
         A_0.WriteLine(Convert.ToString((double)this.b, CultureInfo.InvariantCulture));
     }
     else if (this.a == typeof(int))
     {
         A_0.WriteLine("i");
         A_0.WriteLine(Convert.ToString((int)this.b, CultureInfo.InvariantCulture));
     }
     else if (this.a == typeof(uint))
     {
         A_0.WriteLine("u");
         A_0.WriteLine(Convert.ToString((uint)this.b, CultureInfo.InvariantCulture));
     }
     else if (this.a == typeof(float))
     {
         A_0.WriteLine("f");
         A_0.WriteLine(Convert.ToString((float)this.b, CultureInfo.InvariantCulture));
     }
     else if (this.a == typeof(string))
     {
         A_0.WriteLine("s");
         string b = (string)this.b;
         b = b.Replace("\n", "");
         A_0.WriteLine(b);
     }
     else if (this.a == typeof(bool))
     {
         A_0.WriteLine("b");
         A_0.WriteLine(Convert.ToString((bool)this.b, CultureInfo.InvariantCulture));
     }
     else if (typeof(e6).IsAssignableFrom(this.a))
     {
         e6 e = (e6)this.b;
         A_0.WriteLine(e.a());
         e.a(A_0);
     }
     else
     {
         A_0.WriteLine("0");
     }
 }
Пример #2
0
    public static bool a(e6 A_0)
    {
        string key = A_0.a();

        if (a.ContainsKey(key))
        {
            return(false);
        }
        a.Add(key, A_0);
        return(true);
    }