Class Slot
A model which may represent either a defined macro slot or content which should fill a macro slot.
Inheritance
Implements
Inherited Members
Namespace: ZptSharp.Metal
Assembly: ZptSharp.Abstractions.dll
Syntax
public sealed class Slot : IEquatable<Slot>
Constructors
| Improve this Doc View SourceSlot(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 SourceName
Gets the name of the slot.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
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 SourceEquals(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 |
|
Overrides
Equals(Slot)
Declaration
public bool Equals(Slot other)
Parameters
Type | Name | Description |
---|---|---|
Slot | other |
Returns
Type | Description |
---|---|
System.Boolean |
|
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. |