Show / Hide Table of Contents

Class Children

Factory methods for Children<T>.

Inheritance
Object
Children
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.Collections.Immutable.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 Copyright © 2015-2017 Microsoft
Generated by DocFX