---
title: "Discussion on \"A parking system in C#: singleton, generics, and the ID rollback problem\" | Hashnode"
description: "Discussion on \"A parking system in C#: singleton, generics, and the ID rollback problem\". A parking lot is a good exercise for object-oriented design, because the rules are simple to state and awkward to implement: a vehicle takes a number of slots based on its length, the slots have to be"
url: "https://hashnode.com/posts/a-parking-system-in-c-singleton-generics-and-the-id-rollback-problem/6b0aac2bfac08a5b44271918"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A parking system in C#: singleton, generics, and the ID rollback problem](https://ahmedgamal.hashnode.dev/a-parking-system-in-c-singleton-generics-and-the-id-rollback-problem?utm_source=hashnode&utm_medium=feed)

A parking lot is a good exercise for object-oriented design, because the rules are simple to state and awkward to implement: a vehicle takes a number of slots based on its length, the slots have to be

3d ago · 5 min read · ahmedgamal.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#oop](https://hashnode.com/tag/oop)

## Written by

[Ahmed Gamal](https://hashnode.com/@ahmedgamaldev)

@ahmedgamaldev

  
[View profile](https://hashnode.com/@ahmedgamaldev)

.NET backend and full-stack developer in Egypt

.NET backend and full-stack developer in Egypt. C#, ASP.NET Core, SQL Server. Portfolio: https://aga7474.github.io/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
