> For the complete documentation index, see [llms.txt](https://apwt.gitbook.io/cursus-pro-oo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apwt.gitbook.io/cursus-pro-oo/experimentalmerge5/semester-2-appendix/nice-to-know-stuff/namespaces.md).

# Klassen herbruiken

De namespace van een klasse is een eenvoudige manier om ervoor te zorgen dat verschillende ontwikkelaars hun klassen dezelfde naam kunnen geven, zonder dat er conflicten optreden wanneer deze samen in hetzelfde project worden gebruikt.

Wanneer je een bestaande klasse later in een nieuw project zou willen gebruiken dan kan dit op 3 manieren:

## Eerste manier

Je voegt het klasse bestand toe (via Add -> Existing Item.) en laat dit onaangepast.

Op de locatie waar je de klasse wenst te gebruiken voeg je bovenaan een using statement toe gevolgd door de namespace van het (bv using ConsoleApplication1) of Telkens je de klasse wenst te gebruiken dien je dit via z’n namespace op te roepen (bv ConsoleApplication1.AccountClass eenAccount = new ConsoleApplication1.AccountClass)

## Tweede manier

Je voegt het klasse bestand toe (via Add -> Existing Item.) en verandert de namespace hiervan naar die van je project waarin je aan het werken bent.

## Derde manier

Je maakt een klassenbibliotheek (class library) aan (zie [hier](https://www.youtube.com/watch?v=6n-SL8cp8gM)).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apwt.gitbook.io/cursus-pro-oo/experimentalmerge5/semester-2-appendix/nice-to-know-stuff/namespaces.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
