Skip to content

learning-zone/csharp-basics

Repository files navigation

C# Basics

Click ★ if you like the project. Your contributions are heartily ♡ welcome.


Related Topics


Table of Contents

Focus: Syntax, basic language constructs, and core type system.

  • Fundamentals: Data types, variables, type system, and basic C# syntax.
  • Operators: Arithmetic, comparison, logical, bitwise, and null-coalescing operators.
  • Control Flow: Conditional statements (if/else, switch expressions) and loops (for, foreach, while).

Focus: Object-oriented programming, collections, and common language features.

  • Classes and Structs: Fields, properties, constructors, methods, access modifiers, and records.
  • Inheritance and OOP: Base/derived classes, abstract classes, interfaces, and polymorphism.
  • Collections and Generics: List, Dictionary, HashSet, Stack, Queue, and IEnumerable.
  • File Handling: StreamReader/Writer, File, Path, and Directory APIs.
  • Regular Expression: Regex patterns, matching, groups, and replacements.
  • Exception Handling: try/catch/finally, custom exceptions, and best practices.

Focus: Concurrency, memory management, and advanced language features.

  • Delegates and Events: Delegates, multicast delegates, events, and EventHandler patterns.
  • Lambda Expressions: Func, Action, Predicate, expression trees, and closures.
  • Language Integrated Query (LINQ): LINQ operators, deferred execution, query syntax, and method chaining.
  • Asynchronous Programming and Multithreading: Thread, Task, async/await, Parallel, and synchronization primitives.
  • Memory Management and Garbage Collection: GC generations, IDisposable, finalizers, and memory pressure.

Focus: Architecture, scalability, performance, and deployment strategies.

  • Advanced C# Features: Reflection, source generators, unsafe code, and dynamic programming.
  • Performance and Optimization: Span<T>, Memory<T>, object pooling, benchmarking, and profiling.
  • Microservices and Distributed Systems: Service decomposition, gRPC, message brokers, and distributed patterns.
  • Architecture and Design Patterns: Clean Architecture, CQRS, DDD, and enterprise integration patterns.
  • Deployment: CI/CD pipelines, containerization, publishing profiles, and environment config.
  • .NET Core: Middleware, DI container, configuration, hosted services, and ASP.NET Core internals.
  • Miscellaneous: Reflection, attributes, source generators, and advanced C# patterns.