title: How to increase the size of the console window in C#?
body: <p>I'm creating a prototype for a piece of functionality that I will be implementing in an application, specifically I am displaying data from a collection to the console window but unfortunately some of the lines span wider than the default width of the console window.</p>
  
  <p><img src="https://i.stack.imgur.com/kbW4Z.jpg" alt="alt text"></p>
  
  <p>I've done a bit of <a href="http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/0b374f73-5604-48ee-a720-53bb5b19467b/" rel="nofollow noreferrer">digging and found</a> that the only way to increase the width of the window is to dig into the Kernel32.dll and do it manually.</p>
  
  <p>As elegant as pInvoke is, does a "shorter" way exist to increase the width e.g. (Console.Width = 300) or is using the Kernel32.dll the only way.</p>
  
  <p>Thanks!</p>