Class ConfigStack
Represents a class that contains simple last-in-first-out (LIFO) non-generic collection of objects with configuration.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Implementation.Parser
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class ConfigStack : Stack, ICollection, IEnumerable, ICloneable
Constructors
ConfigStack()
Initializes a new instance of the ConfigStack class.
Declaration
public ConfigStack()
Methods
Clone()
Helps to clones the object.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Clone of the stack. |
Overrides
Contains(IStackData)
Checks whether the stack contains given data.
Declaration
public bool Contains(IStackData data)
Parameters
Type | Name | Description |
---|---|---|
IStackData | data | IStackData instance. |
Returns
Type | Description |
---|---|
System.Boolean | True if stack contains given data, otherwise false. |
Contains(Object)
Hides Contains method.
Declaration
protected bool Contains(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if stack contains object. |
Equals(Object)
Checks whether the two called stacks are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to check. |
Returns
Type | Description |
---|---|
System.Boolean | True of stacks are equal. |
Overrides
GetHashCode()
Gets stack hashcode.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code. |
Overrides
Peek()
Returns the object at the top of the System.Collections.Stack without removing it.
Declaration
public IStackData Peek()
Returns
Type | Description |
---|---|
IStackData | IStackData object. |
Pop()
Removes and returns the object at the top of the System.Collections.Stack.
Declaration
public IStackData Pop()
Returns
Type | Description |
---|---|
IStackData | IStackData instance. |
Push(IStackData)
Inserts an object at the top of the System.Collections.Stack.
Declaration
public void Push(IStackData data)
Parameters
Type | Name | Description |
---|---|---|
IStackData | data | IStackData instance. |
Push(IConfigLexem, ILexem, IParsePoint)
Inserts an object at the top of the System.Collections.Stack.
Declaration
public void Push(IConfigLexem config, ILexem lexem, IParsePoint point)
Parameters
Type | Name | Description |
---|---|---|
IConfigLexem | config | Configurtion of the stack`s element, can not be null |
ILexem | lexem | Lexem instance. Can be null. |
IParsePoint | point | Location. |
Push(IConfigLexem, ILexem, IParsePoint, IConfigLexem)
Inserts an object at the top of the System.Collections.Stack.
Declaration
public void Push(IConfigLexem config, ILexem lexem, IParsePoint point, IConfigLexem firstConfig)
Parameters
Type | Name | Description |
---|---|---|
IConfigLexem | config | Configurtion of the stack's element, can not be null. |
ILexem | lexem | Lexem instance. Can be null. |
IParsePoint | point | Location. |
IConfigLexem | firstConfig | Configuration of the first lexem in sequence. |
Push(Object)
Hides Push method.
Declaration
protected void Push(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to push. |