Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Division42.CodeSnippets
Division42.CodeSnippets

Division42.CodeSnippets

R Seder

|
1,136 installs
| (0) | Free
Code snippets that we found useful. Includes: argument validation, creating exception classes, creating properties that are well-formed, etc. Now supports VS2015.
Download

This is a package of common code snippets for C# and VB.NET. As of this writing, this includes:

  • argNull – checks an argument for null (Nothing in VB), and throws an ArgumentException
  • argString – checks a string argument for String.IsNullOrWhiteSpace(), and throws an ArgumentException
  • propProper – creates a proper exception, and keeps the backing-field with the property. Also includes “Gets or sets …” XML code comments
  • exceptionProper – a proper implementation of an Exception class, with basic XML code comments

For more information about this package, see: http://blog.robseder.com/2015/04/15/new-github-and-vsix-package-division42-codesnippets/

For more information on using these snippets, see: http://blog.robseder.com/2014/10/15/common-visual-studio-snippets-i-use/

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft