Skip to content

Personal project in which I create useful as well as weird and/or illegal extension methods

License

Notifications You must be signed in to change notification settings

pkg-dot-zip/ZimonIsHimUtils

Repository files navigation

Project logo

ZimonIsHimUtils

Stars NuGet NuGet Version Last Commit License


Personal project in which I create useful as well as weird and/or illegal extension methods.

📝 Table of Contents

🧐 About

Personal project in which I create useful as well as weird and/or illegal extension methods. This project started out as a joke but it has since become a more serious project to include more interesting functionality in C#.

✍️ Authors

  • @OnsPetruske - Idea, Initial work, general development & management

Example usage

internal static void Example()
        {
            IList<int> list = new List<int> {1, 5, 6};
            list.Each(PrintTestI); // ForEach() method replacement for IEnumerable (instead of List).

            30.DoFor(PrintTest); // Run action 30 times.
            30.DoFor(PrintTestI); // Run action 30 times and pass iteration as parameter.

            bool aBoolean = false;
            aBoolean.Flip(); // Flips the boolean; turns true into false and vice versa.

            RunOperationOnAction(PrintTest);
        }

        private static void RunOperationOnAction(Action action)
        {
            action.DoFor(21); // Run action 21 times.
        }

        private static void PrintTestI(int i) => Console.WriteLine($"Hello {i}");
        private static void PrintTest() => Console.WriteLine("Hello");

About

Personal project in which I create useful as well as weird and/or illegal extension methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages