{"id":26556736,"url":"https://github.com/bainash10/dotnet-csharp","last_synced_at":"2025-10-15T21:50:19.844Z","repository":{"id":282668503,"uuid":"949286614","full_name":"bainash10/DOTNET-CSharp","owner":"bainash10","description":"Lab Report for VB.Net , C#","archived":false,"fork":false,"pushed_at":"2025-08-28T04:23:34.000Z","size":1772,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T11:25:28.320Z","etag":null,"topics":["csharp","dotnet","vb-net"],"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/bainash10.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,"zenodo":null}},"created_at":"2025-03-16T05:08:43.000Z","updated_at":"2025-08-28T04:23:38.000Z","dependencies_parsed_at":"2025-04-25T04:21:50.077Z","dependency_job_id":"9980c120-f0c5-48ef-b822-c43c540cf411","html_url":"https://github.com/bainash10/DOTNET-CSharp","commit_stats":null,"previous_names":["bainash10/dot_net_git_lab","bainash10/dotnet-csharp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bainash10/DOTNET-CSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bainash10%2FDOTNET-CSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bainash10%2FDOTNET-CSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bainash10%2FDOTNET-CSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bainash10%2FDOTNET-CSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bainash10","download_url":"https://codeload.github.com/bainash10/DOTNET-CSharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bainash10%2FDOTNET-CSharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279120610,"owners_count":26108266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csharp","dotnet","vb-net"],"created_at":"2025-03-22T11:25:21.798Z","updated_at":"2025-10-15T21:50:19.840Z","avatar_url":"https://github.com/bainash10.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **VB.NET, C# Lab Reports by Nischal Baidar**\n\n## **Branches Overview**\n| Branch | Description |\n| --- | --- |\n| `main` | Contains lab reports. |\n| `testing` | Contains a simple `nis.txt` file. |\n| `check` | Contains Python files with `.py` extensions. |\n| `master` | Merged with `testing` and `check` branches. |\n\n## **Inside `main` Branch**\n\n### **Lab 1: Git and GitHub Familiarity**\nThis lab focuses on understanding Git and GitHub workflow, including:\n- Repository creation\n- Branching and merging\n- Basic Git commands and commits\n\n---\n\n### **Lab 2: C# Programming Exercises**\nThis lab consists of several fundamental C# programs:\n\n1. **Print \"Hello\" and your name on separate lines.**\n2. **Swap two numbers.**\n3. **Find the largest of three numbers.**\n4. **Check if a given number is even or odd.**\n5. **Calculate the sum of first `n` natural numbers.**\n6. **Check whether a given year is a leap year or not.**\n7. **Create an integer array and print the sum of array elements.**\n8. **Calculate the factorial of a given number.**\n9. **Check if an input number is a prime number.**\n\n#### **Project Structure**\n- The **`Program.cs`** file contains the object creation and main program logic.\n- Each question’s solution is written in separate **`file.cs`** files for better organization.\n- **Question 1** is implemented inside `Program.cs` using different functions.\n\n#### **Practice Project at College**\n- Files located inside **`Lab 2\\!Practice_PROJECT_Folder_AT_College\\ConsoleApp1`** is developed under the guidance of the instructor.\n\n---\n\n### **Lab 3: Inheritance, Overloading, and Overriding**\n\nThis lab demonstrates important **Object-Oriented Programming (OOP)** concepts in C#:\n\n#### Concepts Covered\n- **Method Overloading**\n  - Same method names `Add` and `Multiply` are defined with different parameter types (`int`, `double`).\n  - Demonstrates **compile-time polymorphism** (static binding).\n\n- **Inheritance**\n  - A base class provides basic math operations like addition, subtraction, multiplication, and division.\n  - A derived class inherits these functionalities and enhances them.\n\n- **Palindrome Checking**\n  - A class is implemented to check whether a given string is a **palindrome** (reads the same forward and backward).\n\n- **Method Overriding**\n  - The base class `Operation` defines a virtual `Calculate` method.\n  - Derived classes `Addition`, `Subtraction`, `Multiplication`, and `Division` override the `Calculate` method to perform specific arithmetic operations.\n  - Demonstrates **runtime polymorphism** (dynamic binding) based on user input.\n\n#### Project Structure\n| File | Description |\n| --- | --- |\n| `Program.cs` | Main program where object creation, method calls, and menu logic are handled. |\n| `Overloading.cs` | Contains method overloading implementations. |\n| `Inheritance.cs` | Contains inheritance examples. |\n| `Palindrome.cs` | Implements logic for checking if a string is a palindrome. |\n| `Overriding.cs` | Contains base and derived classes for overriding (`Operation`, `Addition`, `Subtraction`, `Multiplication`, `Division`). |\n\n#### Summary\nThis lab builds strong foundations on how **overloading**, **inheritance**, **palindrome checking**, and **overriding** work together to implement real-world scenarios using **C#**.\n\n---\n\n### **Lab 4: WinForm**\n\nThis lab focuses on developing a **Windows Form Application** that includes multiple UI components and functionalities:\n\n#### Components Implemented\n\n1. **Calculator**\n   - Supports arithmetic operations: **Addition**, **Subtraction**, **Multiplication**, and **Division**.\n   - Includes input fields for numbers and buttons for each operation.\n   - A **Clear** button resets all inputs.\n\n2. **Login Form**\n   - Fields: Username and password (with password masked as `*`).\n   - A **Login** button initiates the login process.\n\n3. **Registration Form**\n   - Features:\n     - **ComboBox 1**: Main category.\n     - **ComboBox 2**: Dependent on ComboBox 1's selection.\n     - **Radio Buttons**: For selecting options (e.g., Gender).\n     - **Checkboxes**: For selecting additional features or preferences.\n     - **Numeric Up Down**: For numerical input such as age or quantity.\n   - **Validation** is implemented to ensure all fields are correctly filled before submission.\n\n4. **Timer Feature**\n   - A **Timer** is added to sync with the current local time.\n   - It can be **enabled or disabled** via the **MenuStrip** under the `File` menu.\n\n---\n\n## **How to Use**\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/bainash10/DOTNET-CSharp.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbainash10%2Fdotnet-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbainash10%2Fdotnet-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbainash10%2Fdotnet-csharp/lists"}