Show / Hide Table of Contents

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 Source

AttributeSpec(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 Source

Name

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.

| Improve this Doc View Source

Namespace

Gets the attribute namespace.

Declaration
public Namespace Namespace { get; }
Property Value
Type Description
Namespace

The namespace.

Methods

| Improve this Doc View Source

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

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

Implements

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