C# Class NSoft.NFramework.Collections.C5.DuplicateNotAllowedException

An exception thrown when an operation attempts to create a duplicate in a collection with set semantics (P:C5.IExtensible`1.AllowsDuplicates is false) or attempts to create a duplicate key in a dictionary.

With collections this can only happen with Insert operations on lists, since the Add operations will not try to create duplictes and either ignore the failure or report it in a bool return value.

With dictionaries this can happen with the M:C5.IDictionary`2.Add(`0,`1) metod.

Inheritance: System.Exception
Afficher le fichier Open project: debop/NFramework

Méthodes publiques

Méthode Description
DuplicateNotAllowedException ( ) : System

Create a simple exception with no further explanation.

DuplicateNotAllowedException ( string message ) : System

Create the exception with an explanation of the reason.

Method Details

DuplicateNotAllowedException() public méthode

Create a simple exception with no further explanation.
public DuplicateNotAllowedException ( ) : System
Résultat System

DuplicateNotAllowedException() public méthode

Create the exception with an explanation of the reason.
public DuplicateNotAllowedException ( string message ) : System
message string
Résultat System