Advertisement
f0rkB0mb

The WriteLine implementation of System.dll

Aug 9th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.63 KB | None | 0 0
  1.    [HostProtection(SecurityAction.LinkDemand, UI=true)]
  2.     public static void WriteLine()
  3.     {
  4.         Out.WriteLine();
  5.     }
  6.  
  7.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  8.     public static void WriteLine(bool value)
  9.     {
  10.         Out.WriteLine(value);
  11.     }
  12.  
  13.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  14.     public static void WriteLine(char value)
  15.     {
  16.         Out.WriteLine(value);
  17.     }
  18.  
  19.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  20.     public static void WriteLine(decimal value)
  21.     {
  22.         Out.WriteLine(value);
  23.     }
  24.  
  25.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  26.     public static void WriteLine(double value)
  27.     {
  28.         Out.WriteLine(value);
  29.     }
  30.  
  31.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  32.     public static void WriteLine(int value)
  33.     {
  34.         Out.WriteLine(value);
  35.     }
  36.  
  37.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  38.     public static void WriteLine(long value)
  39.     {
  40.         Out.WriteLine(value);
  41.     }
  42.  
  43.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  44.     public static void WriteLine(object value)
  45.     {
  46.         Out.WriteLine(value);
  47.     }
  48.  
  49.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  50.     public static void WriteLine(char[] buffer)
  51.     {
  52.         Out.WriteLine(buffer);
  53.     }
  54.  
  55.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  56.     public static void WriteLine(float value)
  57.     {
  58.         Out.WriteLine(value);
  59.     }
  60.  
  61.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  62.     public static void WriteLine(string value)
  63.     {
  64.         Out.WriteLine(value);
  65.     }
  66.  
  67.     [CLSCompliant(false), HostProtection(SecurityAction.LinkDemand, UI=true)]
  68.     public static void WriteLine(uint value)
  69.     {
  70.         Out.WriteLine(value);
  71.     }
  72.  
  73.     [CLSCompliant(false), HostProtection(SecurityAction.LinkDemand, UI=true)]
  74.     public static void WriteLine(ulong value)
  75.     {
  76.         Out.WriteLine(value);
  77.     }
  78.  
  79.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  80.     public static void WriteLine(string format, params object[] arg)
  81.     {
  82.         if (arg == null)
  83.         {
  84.             Out.WriteLine(format, null, null);
  85.         }
  86.         else
  87.         {
  88.             Out.WriteLine(format, arg);
  89.         }
  90.     }
  91.  
  92.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  93.     public static void WriteLine(string format, object arg0)
  94.     {
  95.         Out.WriteLine(format, arg0);
  96.     }
  97.  
  98.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  99.     public static void WriteLine(string format, object arg0, object arg1)
  100.     {
  101.         Out.WriteLine(format, arg0, arg1);
  102.     }
  103.  
  104.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  105.     public static void WriteLine(char[] buffer, int index, int count)
  106.     {
  107.         Out.WriteLine(buffer, index, count);
  108.     }
  109.  
  110.     [HostProtection(SecurityAction.LinkDemand, UI=true)]
  111.     public static void WriteLine(string format, object arg0, object arg1, object arg2)
  112.     {
  113.         Out.WriteLine(format, arg0, arg1, arg2);
  114.     }
  115.  
  116.     [CLSCompliant(false), HostProtection(SecurityAction.LinkDemand, UI=true)]
  117.     public static void WriteLine(string format, object arg0, object arg1, object arg2, object arg3, __arglist)
  118.     {
  119.         ArgIterator iterator = new ArgIterator(__arglist);
  120.         int num = iterator.GetRemainingCount() + 4;
  121.         object[] arg = new object[num];
  122.         arg[0] = arg0;
  123.         arg[1] = arg1;
  124.         arg[2] = arg2;
  125.         arg[3] = arg3;
  126.         for (int i = 4; i < num; i++)
  127.         {
  128.             arg[i] = TypedReference.ToObject(iterator.GetNextArg());
  129.         }
  130.         Out.WriteLine(format, arg);
  131.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement