Class DynamicCellValue

Wrapper around a dynamic cell which is to be written by an I(Async)Writer.

Inheritance
System.Object
DynamicCellValue
Implements
System.IEquatable<DynamicCellValue>
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public sealed class DynamicCellValue : ValueType, IEquatable<DynamicCellValue>

Properties

Formatter

Instance of Formatter to use when formatting the associated value for writing.

Declaration
public Formatter Formatter { get; }
Property Value
Type Description
Formatter

HasName

Returns true if Name is set.

Declaration
public bool HasName { get; }
Property Value
Type Description
System.Boolean

Name

Name of the column the cell belongs to, throws if Name is not set.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Value

Cell value

Declaration
public dynamic Value { get; }
Property Value
Type Description
System.Object

Methods

Create(String, Object, Formatter)

Create a DynamicCellValue to format the given value of the given column.

It's permissible for both name and value to be null.

Declaration
public static DynamicCellValue Create(string name, dynamic value, Formatter formatter)
Parameters
Type Name Description
System.String name
System.Object value
Formatter formatter
Returns
Type Description
DynamicCellValue

Equals(DynamicCellValue)

Returns true if this object equals the given DynamicCellValue.

Declaration
public bool Equals(DynamicCellValue value)
Parameters
Type Name Description
DynamicCellValue value
Returns
Type Description
System.Boolean

Equals(Object)

Returns true if this object equals the given DynamicCellValue.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Returns a stable hash for this DynamicCellValue.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToString()

Returns a representation of this DynamicCellValue struct.

Only for debugging, this value is not guaranteed to be stable.

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(DynamicCellValue, DynamicCellValue)

Compare two DynamicCellValues for equality

Declaration
public static bool operator ==(DynamicCellValue a, DynamicCellValue b)
Parameters
Type Name Description
DynamicCellValue a
DynamicCellValue b
Returns
Type Description
System.Boolean

Inequality(DynamicCellValue, DynamicCellValue)

Compare two DynamicCellValues for inequality

Declaration
public static bool operator !=(DynamicCellValue a, DynamicCellValue b)
Parameters
Type Name Description
DynamicCellValue a
DynamicCellValue b
Returns
Type Description
System.Boolean

Implements

System.IEquatable<>
In This Article
Back to top Generated by DocFX