37 instantiations of ReleaseVersion
dotnet-aot (3)
Microsoft.Deployment.DotNet.Releases (2)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.NativeWrapper (2)
Microsoft.DotNet.TemplateLocator (7)
Microsoft.NET.Build.Tasks (7)
Microsoft.NET.Sdk.WorkloadManifestReader (7)
sdk-tasks (5)
125 references to ReleaseVersion
dotnet-aot (15)
Microsoft.Deployment.DotNet.Releases (80)
ReleaseVersion.cs (71)
12public class ReleaseVersion : IComparable, IComparable<ReleaseVersion>, IEquatable<ReleaseVersion>
102/// Creates a new <see cref="ReleaseVersion"/> instance using a string representation of a version. The version may
109ReleaseVersion v = Parse(version);
120/// Initializes a new instance of the <see cref="ReleaseVersion"/> class using the specified
167/// Compares this instance to another <see cref="ReleaseVersion"/> and returns an indication of their relative precedence.
171/// <param name="value">The <see cref="ReleaseVersion"/> to compare against this instance.</param>
175public int ComparePrecedenceTo(ReleaseVersion value)
214public int CompareTo(object obj) => CompareTo((ReleaseVersion)obj);
224public int CompareTo(ReleaseVersion other)
242if (obj is null || !(obj is ReleaseVersion releaseVersion))
252ReleaseVersion other = releaseVersion;
260/// Returns a value indicating whether the current <see cref="ReleaseVersion"/> object and a specified
261/// <see cref="ReleaseVersion"/> object represent the same value.
263/// <param name="other">The <see cref="ReleaseVersion"/> object to compare to this instance, or <see langword="null" />.</param>
264/// <returns><see langword="true"/> if every component of this <see cref="ReleaseVersion"/> matches the corresponding
267public bool Equals(ReleaseVersion other)
295/// Determines whether this instance and another <see cref="ReleaseVersion"/> share the same precedence.
301public bool PrecedenceEquals(ReleaseVersion value) => ComparePrecedenceTo(value) == 0;
304/// Returns a <see cref="string"/> representation of this <see cref="ReleaseVersion"/>.
306/// <returns>The <see cref="string"/> representation of this <see cref="ReleaseVersion"/>.</returns>
317/// Returns a <see cref="string"/> representation of the current <see cref="ReleaseVersion"/>. A specified
339/// Compare two specified <see cref="ReleaseVersion"/> objects and returns an integer that indicates their relative position in
349public static int Compare(ReleaseVersion a, ReleaseVersion b)
370/// Determiens whether two <see cref="ReleaseVersion"/> objects have the same value.
378public static bool Equals(ReleaseVersion a, ReleaseVersion b)
394/// Determines whether two specified <see cref="ReleaseVersion"/> objects are equal.
396/// <param name="a">The first <see cref="ReleaseVersion"/> object.</param>
397/// <param name="b">The second <see cref="ReleaseVersion"/> object.</param>
399public static bool operator ==(ReleaseVersion a, ReleaseVersion b) => Equals(a, b);
402/// Determines whether two specified <see cref="ReleaseVersion"/> objects are unequal.
404/// <param name="a">The first <see cref="ReleaseVersion"/> object.</param>
405/// <param name="b">The second <see cref="ReleaseVersion"/> object.</param>
407public static bool operator !=(ReleaseVersion a, ReleaseVersion b) => !Equals(a, b);
410/// Determines whether the first <see cref="ReleaseVersion"/> object is greater than the
411/// second <see cref="ReleaseVersion"/> object.
413/// <param name="a">The first <see cref="ReleaseVersion"/> object.</param>
414/// <param name="b">The second <see cref="ReleaseVersion"/> object.</param>
416public static bool operator >(ReleaseVersion a, ReleaseVersion b) => Compare(a, b) > 0;
419/// Determines whether the first <see cref="ReleaseVersion"/> object is greater than or equal to the
420/// second <see cref="ReleaseVersion"/> object.
422/// <param name="a">The first <see cref="ReleaseVersion"/> object.</param>
423/// <param name="b">The second <see cref="ReleaseVersion"/> object.</param>
425public static bool operator >=(ReleaseVersion a, ReleaseVersion b) => Compare(a, b) >= 0;
428/// Determines whether the first <see cref="ReleaseVersion"/> object is less than the
429/// second <see cref="ReleaseVersion"/> object.
431/// <param name="a">The first <see cref="ReleaseVersion"/> object.</param>
432/// <param name="b">The second <see cref="ReleaseVersion"/> object.</param>
434public static bool operator <(ReleaseVersion a, ReleaseVersion b) => Compare(a, b) < 0;
437/// Determines whether the first <see cref="ReleaseVersion"/> object is less than or equal to the
438/// second <see cref="ReleaseVersion"/> object.
440/// <param name="a">The first <see cref="ReleaseVersion"/> object.</param>
441/// <param name="b">The second <see cref="ReleaseVersion"/> object.</param>
443public static bool operator <=(ReleaseVersion a, ReleaseVersion b) => Compare(a, b) <= 0;
545/// Converts the string representation of a version to an equivalent <see cref="ReleaseVersion"/> object.
551public static ReleaseVersion Parse(string input)
558if (!TryParse(input, throwOnFailure: true, out ReleaseVersion parsedVersion))
567/// Tries to convert the string representation of a version to an equivalent <see cref="ReleaseVersion"/> object,
571/// <param name="result">Contains the <see cref="ReleaseVersion"/> equivalent of the value in <paramref name="input"/> if
574public static bool TryParse(string input, out ReleaseVersion result)
656/// Tries to convert the string representation of a version to an equivalent <see cref="ReleaseVersion"/> object,
660/// <param name="version">Contains the <see cref="ReleaseVersion"/> equivalent of the value in <paramref name="input"/> if
666internal static bool TryParse(string input, bool throwOnFailure, out ReleaseVersion version)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.NativeWrapper (3)
Microsoft.DotNet.TemplateLocator (6)
Microsoft.NET.Build.Tasks (6)
Microsoft.NET.Sdk.WorkloadManifestReader (6)
sdk-tasks (4)