Show / Hide Table of Contents

Class Slot

A model which may represent either a defined macro slot or content which should fill a macro slot.

Inheritance
System.Object
Slot
Implements
System.IEquatable<Slot>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Metal
Assembly: ZptSharp.Abstractions.dll
Syntax
public sealed class Slot : IEquatable<Slot>

Constructors

| Improve this Doc View Source

Slot(String, INode)

Initializes a new instance of the Slot class.

Declaration
public Slot(string name, INode node)
Parameters
Type Name Description
System.String name

Slot name.

INode node

Node.

Properties

| Improve this Doc View Source

Name

Gets the name of the slot.

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

The name.

| Improve this Doc View Source

Node

Gets the DOM node associated with the slot. This is either the node which is replaced when the slot is filled, or the node which fills the slot.

Declaration
public INode Node { get; }
Property Value
Type Description
INode

The node.

Methods

| Improve this Doc View Source

Equals(Object)

Determines whether the specified System.Object is equal to the current Slot.

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

The System.Object to compare with the current Slot.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to the current Slot; otherwise, false.

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

Equals(Slot)

Determines whether the specified Slot is equal to the current Slot.

Declaration
public bool Equals(Slot other)
Parameters
Type Name Description
Slot other

The Slot to compare with the current Slot.

Returns
Type Description
System.Boolean

true if the specified Slot is equal to the current Slot; otherwise, false.

| Improve this Doc View Source

GetHashCode()

Serves as a hash function for a Slot object.

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

A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.

Overrides
System.Object.GetHashCode()

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX