Class AttributeSpec
A specification for an attribute. This may be used to find matching attributes.
Inheritance
System.Object
AttributeSpec
Implements
System.IEquatable<AttributeSpec>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Dom
Assembly: ZptSharp.Abstractions.dll
Syntax
public sealed class AttributeSpec : IEquatable<AttributeSpec>
Constructors
| Improve this Doc View SourceAttributeSpec(String, Namespace)
Initializes a new instance of the AttributeSpec class.
Declaration
public AttributeSpec(string name, Namespace namespace = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Attribute name. |
Namespace | namespace | Attribute namespace. |
Properties
| Improve this Doc View SourceName
Gets the attribute name, without namespace qualifiers. This is AKA the "local name".
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Namespace
Gets the attribute namespace.
Declaration
public Namespace Namespace { get; }
Property Value
Type | Description |
---|---|
Namespace | The namespace. |
Methods
| Improve this Doc View SourceEquals(AttributeSpec)
Determines whether the specified AttributeSpec is equal to the current AttributeSpec.
Declaration
public bool Equals(AttributeSpec other)
Parameters
Type | Name | Description |
---|---|---|
AttributeSpec | other | The AttributeSpec to compare with the current AttributeSpec. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
System.IEquatable<T>