Class Content
Inheritance
object
Content
Assembly: .dll
Syntax
Constructors
Content()
Declaration
Content(ContentPartWrapper[])
Declaration
public Content(ContentPartWrapper[] parts)
Parameters
Content(string)
Declaration
public Content(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Content(string[])
Declaration
public Content(string[] texts)
Parameters
Type |
Name |
Description |
string[] |
texts |
|
Properties
HasValue
Declaration
public bool HasValue { get; }
Property Value
IsNull
Declaration
public bool IsNull { get; }
Property Value
IsString
Declaration
public bool IsString { get; }
Property Value
Length
Returns the length of the array if the value is an array,
returns the length of the string if the value is a string,
otherwise returns 0.
Declaration
public int Length { get; }
Property Value
Methods
AddPartRange<T>(IEnumerable<T>)
Declaration
public void AddPartRange<T>(IEnumerable<T> parts) where T : ContentPart
Parameters
Type |
Name |
Description |
IEnumerable<T> |
parts |
|
Type Parameters
AddPart<T>(T)
Declaration
public void AddPart<T>(T part) where T : ContentPart
Parameters
Type |
Name |
Description |
T |
part |
|
Type Parameters
FromParts(IEnumerable<ContentPart>)
Declaration
public static Content FromParts(IEnumerable<ContentPart> parts)
Parameters
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Operators
implicit operator string(Content)
Declaration
public static implicit operator string(Content content)
Parameters
Type |
Name |
Description |
Content |
content |
|
Returns
implicit operator Content(ContentPartWrapper[])
Declaration
public static implicit operator Content(ContentPartWrapper[] parts)
Parameters
Returns
implicit operator Content(string)
Declaration
public static implicit operator Content(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns
Extension Methods