Code Monkey home page Code Monkey logo

zimonishimutils's Introduction

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");

zimonishimutils's People

Contributors

pkg-dot-zip avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.