using_reference_a_namespace_.htm
Navigation: Clarion.Net (Clarion#) > Clarion# Language Extensions > Compiler Directives >====== USING (reference a namespace) ====== | ![]() ![]() ![]() |
USING namespace
USING alias
USING | Reference a namespace in your program |
namespace | A string name that identifies a valid .NET namespace. Quotes are not required for the string. Parenthesis are optional. The use of aliases is also supported |
The USING directive is used to reference other namespaces (e.g., an object collection) required by your program. This directive allows you to use the types in a namespace without having to specify the namespace. A using directive does not give you access to any namespaces that are nested in the namespace you specify.
The use of aliases is also supported. For example:
USING Str = System.String
After this statement you can use Str instead of System.String, as in;
MyString Str
Example:
PROGRAM
NAMESPACE(Threads)
USING(System)
USING(System.Drawing)
USING(System.Windows.Forms)
See Also: NAMESPACE
using_reference_a_namespace_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1