Main features of the C# language
C sharp

Add to my library

H3545 V1 Article

Main features of the C# language
C sharp

Authors : Michel RIVEILL, Samuel WEIBEL

Review date: January 25, 2023 | Lire en français

Add to my library Add to my library

Logo Techniques de l'Ingenieur You do not have access to this resource.
Request your free trial access! Free trial

Already subscribed?

2. Main features of the C# language

2.1 C# namespace

The namespace concept was borrowed from C++. It makes it easier to check that all the names used in a particular program are unique. It is therefore possible to have the same name in two different namespaces. For example, the "Person" class in the following example :

namespace ArbreGenealogique {

class Personne { .... }

}

namespace Bank {

class Personne { .... }

}

If you wish to use the "Person" class, simply specify which one: "ArbreGenealogique.Personne" or "Banque.Personne". Another solution...

You do not have access to this resource.
Logo Techniques de l'Ingenieur

Exclusive to subscribers. 97% yet to be discovered!

You do not have access to this resource. Click here to request your free trial access!

Already subscribed?


Article included in this offer

"Software technologies and System architectures"

( 234 articles )

Complete knowledge base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

View offer details
Contact us