Show / Hide Table of Contents

Class AttributeDefinition

Model for an attribute definition, as would be used by a TAL 'attributes' attribute.

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

Properties

| Improve this Doc View Source

Expression

Gets or sets the expression for the attribute value.

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

The expression.

| Improve this Doc View Source

Name

Gets or sets the attribute name.

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

The name.

| Improve this Doc View Source

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 Source

Equals(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

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

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

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

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

| Improve this Doc View Source

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
System.Object.GetHashCode()
| Improve this Doc View Source

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.

Overrides
System.Object.ToString()

Implements

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