Struct SeedContent
A Seed
Implements
Inherited Members
Namespace: Snowflake.Scraping
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public struct SeedContent : IEquatable<SeedContent>
Constructors
SeedContent(String, String)
Initializes a new instance of the Seed
Declaration
public SeedContent(string type, string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The semantic type of the content. |
System. |
value | The value of the content. |
Fields
NullSeedType
Represents a null value seedcontent.
Declaration
public static readonly string NullSeedType
Field Value
Type | Description |
---|---|
System. |
RootSeedType
By convention, any non root seeds must be a child of the root seed, which has a type __root.
Declaration
public static readonly string RootSeedType
Field Value
Type | Description |
---|---|
System. |
Properties
Type
Gets the semantic type of the content.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System. |
Value
Gets the string value of the content.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Equals(SeedContent)
Determines if this Seed
Declaration
public bool Equals(SeedContent other)
Parameters
Type | Name | Description |
---|---|---|
Seed |
other | The other Seed |
Returns
Type | Description |
---|---|
System. |
if the two objects are equal. |
Equals(Object)
Determines if this Seed
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System. |
other | The object to compare. |
Returns
Type | Description |
---|---|
System. |
if the two objects are equal. |
Overrides
GetHashCode()
Gets the hashcode of this SeedContent.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
The hashcode of this SeedContent. |
Overrides
Operators
Equality(SeedContent, SeedContent)
Determines if two Seed
Declaration
public static bool operator ==(SeedContent x, SeedContent y)
Parameters
Type | Name | Description |
---|---|---|
Seed |
x | The Seed |
Seed |
y | The Seed |
Returns
Type | Description |
---|---|
System. |
If the twoSeed |
Implicit(SeedContent to (String type, String value))
A Seed
Declaration
public static implicit operator (string type, string value)(SeedContent seedContent)
Parameters
Type | Name | Description |
---|---|---|
Seed |
seedContent | The Seed |
Returns
Type | Description |
---|---|
System. |
Implicit((String type, String value) to SeedContent)
A Seed
Declaration
public static implicit operator SeedContent((string type, string value) contentTuple)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentTuple | The System. |
Returns
Type | Description |
---|---|
Seed |
Inequality(SeedContent, SeedContent)
Determines if two Seed
Declaration
public static bool operator !=(SeedContent x, SeedContent y)
Parameters
Type | Name | Description |
---|---|---|
Seed |
x | The Seed |
Seed |
y | The Seed |
Returns
Type | Description |
---|---|
System. |
If the twoSeed |