Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 885 Bytes

File metadata and controls

18 lines (13 loc) · 885 Bytes

Strong typing code snippets for Visual Studio

Here code snippets can be found for:

  • A strong type wrapping a string [short-cut: strongstr]
  • A strong type wrapping a value type [short-cut: strongval]
  • A comparable strong type wrapping a string [short-cut: cmpstrongstr]
  • A comparable strong type wrapping a value type [short-cut: cmpstrongval]

The "comparable" types differ from the non-comparable types in that they implement IComparable<> and IComparable as well as IEquatable<>.

Installation

In Visual Studio go to Tools -> Code Snippets Manager, select CSharp from the list of languages in the drop-down at the top and select a location from the pane below. Now click Import... and navigate to the *.snippet files and click Open. You should now be able to access the code snippets in a C# file via the short-cuts named above.