Show / Hide Table of Contents

Interface DataStructure.IAddable<T>

Property of a data structure (does it have a Add method).

Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public interface IAddable<T>
Type Parameters
Name Description
T

The type of value.

Methods

| Improve this Doc View Source

TryAdd(T)

Tries to add a value to a data structure.

Declaration
(bool Success, Exception? Exception) TryAdd(T value)
Parameters
Type Name Description
T value

The value to add to the data structure.

Returns
Type Description
System.ValueTuple<System.Boolean, System.Nullable<Exception>>

True if the value was added or false if not.

Extension Methods

DataStructure.Add<T>(DataStructure.IAddable<T>, T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX