Skip to content

Class SidebarItem ​

Namespace: Momentum.Extensions.EventMarkdownGenerator.Models
Assembly: Momentum.Extensions.EventMarkdownGenerator.dll

csharp
public record SidebarItem : IEquatable<SidebarItem>

Inheritance ​

object ← SidebarItem

Implements ​

IEquatable<SidebarItem>

Inherited Members ​

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors ​

SidebarItem(SidebarItem) ​

csharp
[SetsRequiredMembers]
protected SidebarItem(SidebarItem original)

Parameters ​

original SidebarItem

SidebarItem() ​

csharp
public SidebarItem()

Properties ​

Collapsed ​

csharp
public bool Collapsed { get; init; }

Property Value ​

bool

EqualityContract ​

csharp
protected virtual Type EqualityContract { get; }

Property Value ​

Type

Items ​

csharp
public List<SidebarItem> Items { get; init; }

Property Value ​

List<SidebarItem>

csharp
public string? Link { get; init; }

Property Value ​

string?

Text ​

csharp
public required string Text { get; init; }

Property Value ​

string

Methods ​

<Clone>$() ​

csharp
public virtual SidebarItem <Clone>$()

Returns ​

SidebarItem

Equals(object?) ​

csharp
public override bool Equals(object? obj)

Parameters ​

obj object?

Returns ​

bool

Equals(SidebarItem?) ​

csharp
public virtual bool Equals(SidebarItem? other)

Parameters ​

other SidebarItem?

Returns ​

bool

GetHashCode() ​

csharp
public override int GetHashCode()

Returns ​

int

PrintMembers(StringBuilder) ​

csharp
protected virtual bool PrintMembers(StringBuilder builder)

Parameters ​

builder StringBuilder

Returns ​

bool

ToString() ​

csharp
public override string ToString()

Returns ​

string

Operators ​

operator ==(SidebarItem?, SidebarItem?) ​

csharp
public static bool operator ==(SidebarItem? left, SidebarItem? right)

Parameters ​

left SidebarItem?

right SidebarItem?

Returns ​

bool

operator !=(SidebarItem?, SidebarItem?) ​

csharp
public static bool operator !=(SidebarItem? left, SidebarItem? right)

Parameters ​

left SidebarItem?

right SidebarItem?

Returns ​

bool