Skip to content

lncodes/csharp-delegate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

       

C# Delegate

IntroductionInstallationUsageContributeDiscussionLicense

🌟 Introduction

This repository demonstrates the use of C# Delegate through a simple console application. In this repository, delegates are used to manage callbacks for inventory actions, such as adding or removing items. By using delegates, methods can be encapsulated as objects, allowing them to be passed as parameters, stored in variables, and invoked dynamically at runtime, which improves modularity, reduces redundancy, and ensures type safety of the code.

For more information about C# Delegate, check out the blog post: C# Delegate - Last Night Codes.

📦 Installation

To set up this C# console application, follow these steps:

  1. Clone or download the project.

    git clone https://github.com/lncodes/csharp-delegate.git
  2. Open the project

    • Open Visual Studio and select File > Open > Project/Solution.

    • Open the .sln file located in the main folder.

🧑‍💻 Usage

To run the console application, there's serval options can be use:

  1. From Visual Studio

    • Press Ctrl + F5 to run without debugging.

    • Press F5 or click the green start button to run with debugging.

  2. From .NET CLI

     dotnet run

🤝 Contribute

We appreciate your interest in contributing to this project! For detailed guidelines on how to report issues and submit pull requests, please check out our Contributing Guidelines.

💬 Discussion

If you have any questions or want to discuss anything related to this project, visit our Discussion Forum. You can also leave comments on C# Delegate - Last Night Codes blog post for more in-depth discussion on this project’s topics.

📋 License

This project is licensed under the MIT License.

About

A simple console application demonstrating the use of C# Delegate.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages