{"id":15160196,"url":"https://github.com/kemboi590/c-sharp-series","last_synced_at":"2026-01-31T19:01:27.774Z","repository":{"id":257608462,"uuid":"855637998","full_name":"kemboi590/C-Sharp-Series","owner":"kemboi590","description":"C# fundamentals code for learning purposes. C# Series is a training program running for 2 months.","archived":false,"fork":false,"pushed_at":"2024-11-05T12:30:57.000Z","size":770,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T05:39:53.371Z","etag":null,"topics":["c-sharp","documentation","dotnet","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kemboi590.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T07:54:51.000Z","updated_at":"2024-11-06T17:49:46.000Z","dependencies_parsed_at":"2024-10-23T19:06:29.273Z","dependency_job_id":"3dbc363a-1626-4f07-a2cb-0bdac0042cb8","html_url":"https://github.com/kemboi590/C-Sharp-Series","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"5fb84f9e7c749c47b49845ca2e0c7f85a897c1c7"},"previous_names":["kemboi590/c-sharp-series"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kemboi590/C-Sharp-Series","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemboi590%2FC-Sharp-Series","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemboi590%2FC-Sharp-Series/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemboi590%2FC-Sharp-Series/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemboi590%2FC-Sharp-Series/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kemboi590","download_url":"https://codeload.github.com/kemboi590/C-Sharp-Series/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemboi590%2FC-Sharp-Series/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28950279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","documentation","dotnet","vscode-extension"],"created_at":"2024-09-26T22:40:25.759Z","updated_at":"2026-01-31T19:01:27.757Z","avatar_url":"https://github.com/kemboi590.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C# Series\n\nWelcome to the C# Beginner Code repository! This repository contains simple and illustrative examples of fundamental concepts in C# programming. It is designed to help beginners understand the basics of C# through practical examples.\n\n## Table of Contents\n\n- [Hello World](#hello-world)\n- [Namespaces](#namespaces)\n- [Keywords in C#](#keywords-in-c)\n- [Classes and Objects](#classes-and-objects)\n- [Variables](#variables)\n- [C-Sharp Type System](#C-Sharp-Type-System)\n\n## Hello World\n\nThis demonstrates the basic syntax for printing \"Hello World\" to the console. It introduces the `Console.WriteLine()` method used to output text.\n\n## Namespaces\n\nThis shows how to use namespaces to organize code. It includes classes grouped into different namespaces to avoid naming conflicts and illustrate their usage.\n\n## Keywords in C#\n\nThis introduces various C# keywords and their usage, such as `class`, `public`, `private`, `static`, `void`, `int`, `return`, `new`, `if`, `else`, and more.\n\n## Classes and Objects\n\nThis demonstrates the concepts of classes and objects in C#. It includes defining a class with properties and methods and creating objects of that class.\n\n## Variables\n\nThis illustrates different types of variables in C#, such as `int`, `string`, `double`, `bool`, and `char`. It covers how to declare, initialize, and use variables in calculations.\n\n## C-Sharp Type System\n\nC# has two categories of type.\n\n### 1. Value Types\n- Only contain its data\n- Examples include: \n    - int\n    - float\n    - doule\n    - decimal\n    - bool\n    - char\n\n\n### 2. Referrence Types\n- Stores reference to there data objects.\n- Examples include:\n    - class\n    - intefaces\n    - arrays\n    - strings\n    - tuples\n    - records\n    - dynamic\n\n\n### 3. Generics and Interfaces\n\n\n**Explanation**:\n\n- **IPaymentProcessor Interface**:  \n  This defines two methods, `ProcessPayment` and `GetPaymentStatus`, that any class implementing this interface must provide. It abstracts the functionality of different payment processors.\n\n- **CreditCardPayment and PayPalPayment Classes**:  \n  These classes implement the `IPaymentProcessor` interface, providing their own versions of how a payment is processed and how the payment status is retrieved.\n\n\n\n| **Feature**             | **Interface**                                                            | **Generics**                                                          |\n|-------------------------|--------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| **Purpose**              | Define a contract that a class must follow.                              | Define reusable types, methods, or classes with placeholders for types.|\n| **Type Constraint**      | No specific type constraint; any class/struct can implement an interface.| Can be constrained to specific types (e.g., `where T : class`).        |\n| **Implementation**       | Interfaces do not contain any implementation; classes must implement them.| Generics provide actual code and logic, but work with any type.        |\n| **Polymorphism**         | Used to achieve polymorphism (treat different classes uniformly).         | Enables writing flexible, type-safe code that can work with multiple types. |\n| **Multiple Use**         | A class can implement multiple interfaces.                               | A class or method can only use one generic definition at a time.       |\n| **Example Use Cases**    | Enforce common behavior across different types of classes.               | Create reusable data structures (e.g., lists, dictionaries) or methods.|\n| **Code Reuse**           | Achieves code reuse by defining shared behavior for unrelated classes.   | Achieves code reuse by allowing logic to be applied to various data types. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkemboi590%2Fc-sharp-series","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkemboi590%2Fc-sharp-series","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkemboi590%2Fc-sharp-series/lists"}