Class Children
Factory methods for Children<T>.
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 SourceMany<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 |
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 |
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 |
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 |