Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Compiler Error CS0138

A using namespace directive can only be applied to namespaces; 'class' is a class not a namespace

A using directive can only take the name of a namespace as a parameter.

The following sample generates CS0138:

// CS0138.cs
using System.Object;   // CS0138
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.