Struct SeedTree
Used when building a seed tree, represents a SeedContent with context-free parent/child relationships. This should never be used directly outside of the return value of an IScraper. There is no way to instantiate this class besides implicitly converting from an instance of SeedContent. SeedTree does not implement System.IEquatable<T>, and thus is not equatable.
Inherited Members
Namespace: Snowflake.Scraping.Extensibility
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public struct SeedTree
Properties
Children
Gets the children of this SeedTree
Declaration
public IEnumerable<SeedTree> Children { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<SeedTree> |
Content
Gets the SeedContent associated with this tree.
Declaration
public SeedContent Content { get; }
Property Value
| Type | Description |
|---|---|
| SeedContent |
Operators
Implicit(SeedTree to SeedContent)
Implicitly coerces a SeedTree into a single SeedContent without children.
Declaration
public static implicit operator SeedContent(SeedTree seedTree)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedTree | seedTree | The SeedTree to coerce. |
Returns
| Type | Description |
|---|---|
| SeedContent |
Implicit(SeedTree to (SeedContent content, IEnumerable<SeedTree> children))
Implicitly coerces a SeedTree
into a
Declaration
public static implicit operator (SeedContent content, IEnumerable<SeedTree> children)(SeedTree seedTree)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedTree | seedTree | The SeedTree to convert. |
Returns
| Type | Description |
|---|---|
| System.ValueTuple<SeedContent, System.Collections.Generic.IEnumerable<SeedTree>> |
Implicit(SeedTree to (String type, String value))
Implicitly coerces a SeedTree into a single SeedContent without children.
Declaration
public static implicit operator (string type, string value)(SeedTree seedTree)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedTree | seedTree | The SeedTree to coerce. |
Returns
| Type | Description |
|---|---|
| System.ValueTuple<System.String, System.String> |
Implicit(SeedTree to ((String type, String value) content, IEnumerable<SeedTree> children))
Implicitly coerces a
Declaration
public static implicit operator ((string type, string value) content, IEnumerable<SeedTree> children)(SeedTree seedTree)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedTree | seedTree | The |
Returns
| Type | Description |
|---|---|
| System.ValueTuple<System.ValueTuple<System.String, System.String>, System.Collections.Generic.IEnumerable<SeedTree>> |
Implicit(SeedContent to SeedTree)
Implicitly coerces a SeedContent into a single SeedTree without children.
Declaration
public static implicit operator SeedTree(SeedContent seedContent)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedContent | seedContent | The SeedContent to coerce. |
Returns
| Type | Description |
|---|---|
| SeedTree |
Implicit((SeedContent content, IEnumerable<SeedTree> children) to SeedTree)
Implicitly coerces a
Declaration
public static implicit operator SeedTree((SeedContent content, IEnumerable<SeedTree> children) contentTuple)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ValueTuple<SeedContent, System.Collections.Generic.IEnumerable<SeedTree>> | contentTuple | The |
Returns
| Type | Description |
|---|---|
| SeedTree |
Implicit((String type, String value, IEnumerable<SeedTree> children) to SeedTree)
Implicit coerces a
Declaration
public static implicit operator SeedTree((string type, string value, IEnumerable<SeedTree> children) contentTuple)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ValueTuple<System.String, System.String, System.Collections.Generic.IEnumerable<SeedTree>> | contentTuple | The |
Returns
| Type | Description |
|---|---|
| SeedTree |
Implicit((String type, String value) to SeedTree)
Implicitly coerces a SeedContent into a single SeedTree without children.
Declaration
public static implicit operator SeedTree((string type, string value) seedContent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ValueTuple<System.String, System.String> | seedContent | The SeedContent to coerce. |
Returns
| Type | Description |
|---|---|
| SeedTree |