# C# · DocFX

Real DocFX assembly and compiler XML output from the checked-in csharp fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.

> Source: https://appgram.github.io/docsy/versions/current/fr/dotnet-sdk  
> Language: csharp  
> Symbols: 10 across 2 categories

## Categories

- [Example](#example) — 9 items
- [Namespaces](#namespaces) — 1 items

## Example

### `Example.Greeter`  <sub>class</sub>

Build personalized greetings without network access.

**Remarks** — Create one greeter per locale. Prefix changes affect future calls.

**Related types** — `System.Object`

```csharp
public class Greeter
```

**Example**

```csharp
var greeter = new Greeter();
Console.WriteLine(greeter.Greet("Docsy"));
```

---

### `Example.Greeter.Greet(string)`  <sub>method</sub>

Greet a reader.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `System.String` | ✓ | Reader name. |

**Returns** — `System.String` — A friendly greeting.

```csharp
public string Greet(string name)
```

**Example**

```csharp
new Greeter().Greet("Ada");
```

---

### `Example.Greeter.GreetChecked(string)`  <sub>method</sub>

Reject an empty reader name.

**Errors**

- `System.ArgumentException` — When name is empty.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `System.String` | ✓ | Reader name. |

**Returns** — `System.String` — A validated greeting.

```csharp
public string GreetChecked(string name)
```

---

### `Example.Greeter.Greeter()`  <sub>constructor</sub>

```csharp
public Greeter()
```

---

### `Example.Greeter.GreetMany(string[])`  <sub>method</sub>

Greet several readers while preserving input order.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `System.String[]` | ✓ | Reader names. |

**Returns** — `System.String[]` — Greetings in the same order.

```csharp
public string[] GreetMany(string[] names)
```

**Example**

```csharp
new Greeter().GreetMany(new[] { "Ada", "Linus" });
```

---

### `Example.Greeter.Prefix`  <sub>property</sub>

Greeting prefix used for future calls.

**Returns** — `System.String`

```csharp
public string Prefix { get; set; }
```

---

### `Example.Mood`  <sub>enum</sub>

Supported greeting moods.

**Values** — `Friendly`, `Formal`

```csharp
public enum Mood
```

---

### `Example.Mood.Formal`  <sub>field</sub>

**Returns** — `Example.Mood`

```csharp
Formal = 1
```

---

### `Example.Mood.Friendly`  <sub>field</sub>

**Returns** — `Example.Mood`

```csharp
Friendly = 0
```

## Namespaces

### `Example`  <sub>namespace</sub>
