Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Surviveplus Code Snippets
Surviveplus Code Snippets

Surviveplus Code Snippets

SHIN-ICHI KOGA

|
1,552 installs
| (0) | Free
Some code snippets for Visual Studio 2012, 2013 & 2015. It is used by Surviveplus.net developers team.
Download

Surviveplus Code Snippets

Some code snippets for Visual Studio 2012, 2013 & 2015. It is used by Surviveplus.net developers team.

http://www.surviveplus.net/ja/

 

Japanese : /vsgallery/5b63f911-3383-412c-a85b-8b9af21c33b9

 

List of code snippets (Visual Basic, C#)

Class

  • Class [classSurviveplus]
  • Exception [exceptionSurviveplus]
  • NativeMethods [native]

Code Block

  • Call Dispose only when a variable is not null reference. [ disposeIfNotNull ]  (C# only) 
  • Initialize new instance when a variable is null reference, and return it. [ returnIfNullNew ] (C# only)

Events

  • RaiseEvent (Extension method, C# only)

Implements Interface

  • Implement IDisposable [dispose] 

LINQ and Collections

  • DirectoryInfo Recursion (Extension method, C# only)
  • IEnumerable<T> ForEach (Extension method, C# only)
  • Singleton (Extension method, C# only)
  • ToEnumerable (Extension method, C# only)
  • LINQ [linq] (C# only)
  • Recursion Lambda (C# only)

Method

  • Constructor [ctorSurviveplus]
  • Extension methods [extensions]
  • Extension methods (with Namespace) [extensionsWithNameSpace]
  • ToString Override [tostring]

Property

  • Property (with Backing Field) [propfullSurviveplus]
  • ReadOnly Property (with Backing Field) [propgfullSurviveplus]

Verify Args

  • Throw Exception when argument is the empty string or a null reference [nullempex]
  • Throw Exception when argument is a null reference [nullex]
  • Throw Exception when argument is white-space, the empty string or a null reference [nullwex] 
  • Throw Exception when argument is not defined as the enumeration [notenumex]
  • Throw Exception when argument is not useful enumeration [outenumex]

Release Note

ver. 1.10

  • "LINQ and Collections" and "Events" are added.
  • linq is moved to "LINQ and Collections".
  • disposeIfNotNull and returnIfNullNew are added to "Code Block".
  • tostring is added to "Method".
  • Visual Studio 2012, 2013 and 2015 are supported.

ver. 1.9

  • notenumex, outenumex are added.

ver. 1.8

  • C# : nullwex, native are added.
  • Visual Basic : NullWEx is added.

ver. 1.7

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