Show / Hide Table of Contents

Class Children

Factory methods for Children<T>.

Inheritance
Object
Children
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Sawmill
Assembly: Sawmill.dll
Syntax
public static class Children

Methods

| Improve this Doc View Source

Many<T>(ImmutableList<T>)

Creates a Children<T> with any number of elements.

Declaration
public static Children<T> Many<T>(ImmutableList<T> children)
Parameters
Type Name Description
ImmutableList<T> children
Returns
Type Description
Children<T>

A Children<T> with any number of elements.

Type Parameters
Name Description
T
| Improve this Doc View Source

None<T>()

Creates a Children<T> with no elements.

Declaration
public static Children<T> None<T>()
Returns
Type Description
Children<T>

A Children<T> with no elements.

Type Parameters
Name Description
T
| Improve this Doc View Source

One<T>(T)

Creates a Children<T> with a single element.

Declaration
public static Children<T> One<T>(T child)
Parameters
Type Name Description
T child
Returns
Type Description
Children<T>

A Children<T> with a single element.

Type Parameters
Name Description
T
| Improve this Doc View Source

Two<T>(T, T)

Creates a Children<T> with two elements.

Declaration
public static Children<T> Two<T>(T first, T second)
Parameters
Type Name Description
T first
T second
Returns
Type Description
Children<T>

A Children<T> with two elements.

Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX