# err0r-ima/metotlar architecture

> Architecture diagram of the GitHub repository err0r-ima/metotlar, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/err0r-ima/metotlar
- Repository: https://github.com/err0r-ima/metotlar

## Overview

This repository contains three independent C# teaching examples rather than one integrated product: value/reference assignment, basic arithmetic, and a product-list/cart-method demo. The product demo’s entry point creates product objects, prints their fields, and passes them to the cart manager, which prints an added-to-cart message. The graph shows only relationships visible in the excerpts; the value/reference example has no separate runtime component shown.

Main entry points: [`Metotlar/Program.cs`](https://github.com/err0r-ima/metotlar/blob/master/Metotlar/Program.cs) (Shopping demo), [`Metotlar/SepetManager.cs`](https://github.com/err0r-ima/metotlar/blob/master/Metotlar/SepetManager.cs) (Cart manager), [`Metotlar/Urun.cs`](https://github.com/err0r-ima/metotlar/blob/master/Metotlar/Urun.cs) (Product model), [`Matematik/Program.cs`](https://github.com/err0r-ima/metotlar/blob/master/Matematik/Program.cs) (Math entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_value_reference_demo["Value/reference demo<br/>[Program.cs]"]
node_math_entry["Math entry point<br/>[Program.cs]"]
node_arithmetic["Addition method<br/>[DortIslem.cs]"]
node_shopping_entry["Shopping demo<br/>[Program.cs]"]
node_product["Product model<br/>[Urun.cs]"]
node_cart_manager["Cart manager<br/>[SepetManager.cs]"]

node_math_entry -->|"calls addition"| node_arithmetic
node_shopping_entry -->|"creates and reads"| node_product
node_shopping_entry -->|"adds products"| node_cart_manager
node_cart_manager -->|"reads product name"| node_product

click node_value_reference_demo "https://github.com/err0r-ima/metotlar/blob/master/DegerveReferansT%C4%B1pler/Program.cs"
click node_math_entry "https://github.com/err0r-ima/metotlar/blob/master/Matematik/Program.cs"
click node_arithmetic "https://github.com/err0r-ima/metotlar/blob/master/Matematik/DortIslem.cs"
click node_shopping_entry "https://github.com/err0r-ima/metotlar/blob/master/Metotlar/Program.cs"
click node_product "https://github.com/err0r-ima/metotlar/blob/master/Metotlar/Urun.cs"
click node_cart_manager "https://github.com/err0r-ima/metotlar/blob/master/Metotlar/SepetManager.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_value_reference_demo,node_math_entry,node_arithmetic,node_shopping_entry,node_cart_manager toneTeal
class node_product toneIndigo
```

## Components

### Other components

- [Value/reference demo](https://github.com/err0r-ima/metotlar/blob/master/DegerveReferansT%C4%B1pler/Program.cs): `DegerveReferansTıpler/Program.cs`
- [Math entry point](https://github.com/err0r-ima/metotlar/blob/master/Matematik/Program.cs): `Matematik/Program.cs`
- [Addition method](https://github.com/err0r-ima/metotlar/blob/master/Matematik/DortIslem.cs): `Matematik/DortIslem.cs`
- [Shopping demo](https://github.com/err0r-ima/metotlar/blob/master/Metotlar/Program.cs): `Metotlar/Program.cs`
- [Product model](https://github.com/err0r-ima/metotlar/blob/master/Metotlar/Urun.cs): `Metotlar/Urun.cs`
- [Cart manager](https://github.com/err0r-ima/metotlar/blob/master/Metotlar/SepetManager.cs): `Metotlar/SepetManager.cs`

## Connections

- Math entry point → Addition method: calls addition (evidence: `Matematik/Program.cs`)
- Shopping demo → Product model: creates and reads (evidence: `Metotlar/Program.cs`)
- Shopping demo → Cart manager: adds products (evidence: `Metotlar/Program.cs`)
- Cart manager → Product model: reads product name (evidence: `Metotlar/SepetManager.cs`)
