Show / Hide Table of Contents

Class Attribute

A single key + value attribute.

Inheritance
System.Object
Attribute
Namespace: Supremes.Nodes
Assembly: Supremes.dll
Syntax
public sealed class Attribute : object
Remarks

Keys are trimmed and normalised to lower-case.

Properties

Html

Get the HTML representation of this attribute.

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

HTML

Remarks

e.g. href="index.html".

Key

Get or set the attribute key.

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

the attribute key

Value

Get or set the attribute value.

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

the attribute value

Methods

Equals(Object)

Compares two Attribute instances for equality.

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

GetHashCode()

Returns the hash code for this instance.

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

ToString()

Get the string representation of this attribute, implemented as Html .

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

string

Back to top Generated by DocFX