• marcos@lemmy.world
      link
      fedilink
      English
      arrow-up
      21
      ·
      edit-2
      23 days ago
      var CompareBooleans = new ComparatorFactory().BooleanComparator(new BooleanComparisonByEqualityPolicy());
      if (CompareBooleans(a, b) == true) {
           System.Out.PrintLn("Sames!!!");
      }
      

      But now that I’ve written this, it’s C#, so it’s missing dependency injection.