MercurialVersionAttribute Class

Summary

This attribute can be applied to MercurialVersionBase descendants to specify which version(s) they apply to.
Assembly
Mercurial.Net.dll
Namespace
Mercurial.Versions
Interfaces
  • _Attribute
  • IComparable<T>
  • IEquatable<T>
Base Types
  • object
  • Attribute
graph TD Base0["Attribute"]-->Type Base1["object"]-->Base0 Interface0["_Attribute"]-.->Type Interface1["IComparable<T>"]-.->Type Interface2["IEquatable<T>"]-.->Type Type["MercurialVersionAttribute"] class Type type-node

Syntax

public sealed class MercurialVersionAttribute : Attribute, _Attribute, 
    IComparable<MercurialVersionAttribute>, IEquatable<MercurialVersionAttribute>

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
MercurialVersionAttribute(string) Initializes a new instance of the MercurialVersionAttribute class.
MercurialVersionAttribute(string, string) Initializes a new instance of the MercurialVersionAttribute class.

Properties

Name Value Summary
FromVersion Version
Gets the FromVersionString as a properly formatted Version, with missing pieces appropriately set.
FromVersionString string
Gets the lower-bound of the supported version, inclusive.
ToVersion Version
Gets the ToVersionString as a properly formatted Version, with missing pieces appropriately set.
ToVersionString string
Gets the upper-bound of the supported version, inclusive.

Methods

Name Value Summary
CompareTo(MercurialVersionAttribute) int
Compares the current object with another object of the same type.
Equals(MercurialVersionAttribute) bool
Indicates whether the current object is equal to another object of the same type.
Equals(object) bool
Returns a value that indicates whether this instance is equal to a specified object.
GetHashCode() int
Returns the hash code for this instance.
IsMatch(Version) bool
Determines if the specified version is a match against this attribute.

Operators

Name Value Summary
operator !=(MercurialVersionAttribute, MercurialVersionAttribute) bool
operator <(MercurialVersionAttribute, MercurialVersionAttribute) bool
operator ==(MercurialVersionAttribute, MercurialVersionAttribute) bool
operator >(MercurialVersionAttribute, MercurialVersionAttribute) bool