Table of Contents

ThrowIfNotDifferent Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Validator.cs

ThrowIfNotDifferent(string, string, string, string)

Validates and throws an ArgumentOutOfRangeException if there is no difference between second and first.

public static void ThrowIfNotDifferent(string first, string second, string paramName, string message = null)

Parameters

first string

The value that specifies valid characters.

second string

The value to compare with first.

paramName string

The name of the parameter that caused the exception.

message string

A message that describes the error.

Exceptions

ArgumentOutOfRangeException

There is no difference between second and first.