Thread: namespace query
View Single Post
  #3 (permalink)  
Old August 9th, 2016, 02:28 PM
Robguay Robguay is offline
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok I believe I understand, however here is another confusing thing

Code:
using  System.Convert;

myDirection = ToInt32(ReadLine());
----------------------------------------
ToInt32() throws an "The name 'ToInt32' does not exist in the current context", unless I use static in the using statement as below.

Code:
using static System.Convert;

myDirection = ToInt32(ReadLine());
Thanks
Reply With Quote