ToolBucket is a C# .NET Framework plugin for Notepad++

Features

ToolBucket contains the following features:

  • Multi-line search and replace dialog.
  • Change indentation dialog.
  • Generate GUID
  • Generate Lorem Ipsum
  • Compute MD5 Hash
  • Compute SHA1 Hash
  • Base 64 encode
  • Base 64 decode

Download

The latest version is available here:
https://github.com/phdesign/NppToolBucket/downloads

Installation

Copy the NppToolBucket.dll file to your Notepad++\plugins directory.

Dependencies

Requires .NET Framework 2.0 or higher to be installed on the system.

Screenshots


Need to perform validation on a model’s property based on some other state of the model? Here’s a way to achieve it using the IValidatableObject interface and data annotations.

In our example project we want to validate the state field is a valid Australian state if the country field is “Australia”.

Conditional validation of state field

Read the rest of this entry »


There’s plenty of examples on how to find duplicates using LINQ’s GroupBy method, but usually they use a projection to return a new object, like this:

_filteredSubmissions = (from s in _filteredSubmissions
                        group s by s.Email
                        into g
                        where g.Count() > 1
                        select new { Emails = g.Key, DuplicateCount = g.Count() }

Read the rest of this entry »