title: C# - StateObject Class - Location
body: <p>This should hopefully be a simple one.</p>
  
  <p>I am trying to learn about the Socket.BeginAccept Method from <a href="http://msdn.microsoft.com/en-us/library/bysfec7w.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bysfec7w.aspx</a></p>
  
  <p>When creating the AcceptReceiveCallback method, you need to call an instance of the StateObject class, but intellisense on Visual Studio doesn't recognise this and the code doesn't compile.</p>
  
  <p>I am using the System reference as well as several others.</p>
  
  <p>Thankyou</p>