Did you add this code to a project that was named "Random"? -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Smotritsky, Alex Sent: Thursday, May 03, 2007 4:10 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Random class in .net 2.0
When I try to compile the program here: http://msdn2.microsoft.com/en-us/library/system.random(vs.80).aspx in vs.net 2005 professional service pack 1 (C# Console project) I get the error: 'Random' is a 'namespace' but is used like a 'type' I'd like to know if others get this. Thanks. =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com