title: Get set properties
body: <p>So im trying to use the get / set properties on C# but I cant get my code to work ( it crashes my console app )</p>
  
  <p>This is my textHandler.cs file as you can see the public static void method WriteInfo is using get / set properties but it crashes my app..</p>
  
  <pre><code>class TextHandler
  {
      public static void WriteInfo(String text)
      {
          var consoleText = new Text();
          consoleText.text = text;
          Console.ForegroundColor = ConsoleColor.Cyan;
          Console.WriteLine(consoleText);
          Console.ForegroundColor = ConsoleColor.White;
      }
      public static void WriteError(String text)
      {
          Console.ForegroundColor = ConsoleColor.Red;
          Console.WriteLine(text);
          Console.ForegroundColor = ConsoleColor.White;
      }
      public static void WriteSuccess(String text)
      {
          Console.ForegroundColor = ConsoleColor.Green;
          Console.WriteLine(text);
          Console.ForegroundColor = ConsoleColor.White;
      }
      public static void WriteText(String text, ConsoleColor color)
      {
      }
  }
  public class Text
  {
      public String text
      {
          get
          {
              return this.text;
          }
          set
          {
              this.text = value;
          }
      }
  }
  </code></pre>
  
  <p>Here I call that method</p>
  
  <pre><code>TextHandler.WriteInfo("New client with version : " + message + " | current version : " + version);
  </code></pre>
  
  <p>If I remove that line the app doesnt crash anymore, dont know what Im doing wrong since I dont get any error.
  Also if this is a bad method to do this please tell me I would like to improve
  Thanks</p>