Skip to Content
Programming PERL in the .NET Environment
book

Programming PERL in the .NET Environment

by Yevgeny Menaker, Michael Saltzman, Robert J. Oberg
September 2002
Intermediate to advanced content levelIntermediate to advanced
496 pages
10h
English
Addison-Wesley Professional
Content preview from Programming PERL in the .NET Environment

Namespaces

Earlier in this chapter, we introduced the term namespace. In general, all classes in .NET are divided into namespaces to prevent name conflicts. Thus, classes with the same name may reside under the different namespaces. For example, Samples.Car and Examples.Car are different classes with the same name. We may distinguish them by their namespace.

When writing a program, you may refer to classes or types with a fully qualified name, a name in which the namespace precedes the class name. You can specify the fully qualified name either by delimiting the namespace and class name with two colons or by placing the whole name (both namespace and class) in double quotes and delimiting with a dot.

 System::Console->WriteLine("Hello"); # Correct ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself Perl in 21 Days, Second Edition

Sams Teach Yourself Perl in 21 Days, Second Edition

Laura Lemay, Rafe Colburn
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 0130652067Purchase book