CommonExtensions Class

Summary

General-purpose extension and guard methods used throughout GitVersion.
Namespace
GitVersion.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["CommonExtensions"] class Type type-node

Syntax

public static class CommonExtensions

Methods

Name Value Summary
NotNull<T>(T, string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
static
NotNullOrEmpty(string, string) string
Throws ArgumentException when value is null or empty; otherwise returns the value.
static
NotNullOrWhitespace(string, string) string
Throws ArgumentException when value is null, empty, or whitespace; otherwise returns the value.
static
GitHub