Show / Hide Table of Contents

Class PackageVersion

Inheritance
Object
PackageVersion
Implements
IComparable
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: Unity.DataContract
Assembly: Unity.DataContract.dll
Syntax
public class PackageVersion : IComparable

Constructors

| Improve this Doc View Source

PackageVersion(String)

Declaration
public PackageVersion(string version)
Parameters
Type Name Description
String version

Properties

| Improve this Doc View Source

major

Declaration
public int major { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

micro

Declaration
public int micro { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

minor

Declaration
public int minor { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

parts

Declaration
public int parts { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

special

Declaration
public string special { get; }
Property Value
Type Description
String
| Improve this Doc View Source

text

Declaration
public string text { get; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

CompareTo(Object)

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Int32
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()
| Improve this Doc View Source

IsCompatibleWith(PackageVersion)

Declaration
public bool IsCompatibleWith(PackageVersion other)
Parameters
Type Name Description
PackageVersion other
Returns
Type Description
Boolean
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Operators

| Improve this Doc View Source

Equality(PackageVersion, PackageVersion)

Declaration
public static bool operator ==(PackageVersion a, PackageVersion z)
Parameters
Type Name Description
PackageVersion a
PackageVersion z
Returns
Type Description
Boolean
| Improve this Doc View Source

GreaterThan(PackageVersion, PackageVersion)

Declaration
public static bool operator>(PackageVersion a, PackageVersion z)
Parameters
Type Name Description
PackageVersion a
PackageVersion z
Returns
Type Description
Boolean
| Improve this Doc View Source

GreaterThanOrEqual(PackageVersion, PackageVersion)

Declaration
public static bool operator >=(PackageVersion a, PackageVersion z)
Parameters
Type Name Description
PackageVersion a
PackageVersion z
Returns
Type Description
Boolean
| Improve this Doc View Source

Implicit(PackageVersion to String)

Declaration
public static implicit operator string (PackageVersion version)
Parameters
Type Name Description
PackageVersion version
Returns
Type Description
String
| Improve this Doc View Source

Inequality(PackageVersion, PackageVersion)

Declaration
public static bool operator !=(PackageVersion a, PackageVersion z)
Parameters
Type Name Description
PackageVersion a
PackageVersion z
Returns
Type Description
Boolean
| Improve this Doc View Source

LessThan(PackageVersion, PackageVersion)

Declaration
public static bool operator <(PackageVersion a, PackageVersion z)
Parameters
Type Name Description
PackageVersion a
PackageVersion z
Returns
Type Description
Boolean
| Improve this Doc View Source

LessThanOrEqual(PackageVersion, PackageVersion)

Declaration
public static bool operator <=(PackageVersion a, PackageVersion z)
Parameters
Type Name Description
PackageVersion a
PackageVersion z
Returns
Type Description
Boolean

Implements

System.IComparable

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX