Class AttributeDefinition
Model for an attribute definition, as would be used by a TAL 'attributes' attribute.
Inheritance
Implements
Inherited Members
Namespace: ZptSharp.Tal
Assembly: ZptSharp.Abstractions.dll
Syntax
public sealed class AttributeDefinition : IEquatable<AttributeDefinition>
Properties
| Improve this Doc View SourceExpression
Gets or sets the expression for the attribute value.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String | The expression. |
Name
Gets or sets the attribute name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Prefix
Gets or sets the attribute prefix.
Declaration
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
System.String | The prefix. |
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to the current AttributeDefinition.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current AttributeDefinition. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Equals(AttributeDefinition)
Determines whether the specified AttributeDefinition is equal to the current AttributeDefinition.
Declaration
public bool Equals(AttributeDefinition other)
Parameters
Type | Name | Description |
---|---|---|
AttributeDefinition | other | The AttributeDefinition to compare with the current AttributeDefinition. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Serves as a hash function for a AttributeDefinition object. Intances of that class ARE NOT suitable for storing in hash-tables.
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
ToString()
Returns a System.String that represents the current AttributeDefinition.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current AttributeDefinition. |