Skip to content

Commit 63e8d08

Browse files
authored
Updated doc comments (#34)
Co-authored-by: Steven Maillet <25911635+smaillet@users.noreply.github.com>
1 parent d280494 commit 63e8d08

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

src/Ubiquity.NET.Versioning/CSemVer.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,15 @@ public string ToString( string? format, IFormatProvider? formatProvider )
228228
/// <para>A file version is a quad of 4 <see cref="UInt16"/> values. This is convertible to a <see cref="UInt64"/> in the following
229229
/// pattern:
230230
/// (bits are numbered with MSB as the highest numeric value [Actual ordering depends on platform endianess])
231-
/// bits 48-63: MAJOR
232-
/// bits 32-47: MINOR
233-
/// bits 16-31: BUILD
234-
/// bits 0-15: REVISION
231+
/// <list type="table">
232+
/// <listheader><term>Field</term><term>Description</term></listheader>
233+
/// <item><term>bits 48-63</term><description> Major part of Build number</description></item>
234+
/// <item><term>bits 32-47</term><description> Minor part of Build number</description></item>
235+
/// <item><term>bits 16-31</term><description> Build part of Build number</description></item>
236+
/// <item><term>bits 0-15</term><description> Revision part of Build number (Odd Numbers indicate a CI build</description></item>
237+
/// </list>
235238
/// </para>
236-
/// <para>A file version cast as a <see cref="UInt64"/> is ***NOT*** the same as an Ordered version number. The file version
239+
/// <para>A file version cast as a <see cref="UInt64"/> is <i><b>NOT</b></i> the same as an Ordered version number. The file version
237240
/// includes a "bit" for the status as a CI Build. Thus a "file version" as a <see cref="UInt64"/> is the ordered version shifted
238241
/// left by one bit and the LSB indicates if it is a CI build</para>
239242
/// </remarks>

src/Ubiquity.NET.Versioning/CiBuildInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override string ToString( )
4949
/// <param name="formatProvider">[ignored] formatting uses a well-known pattern that is independent of any localization</param>
5050
/// <returns>String format of the build information</returns>
5151
/// <remarks>
52-
/// This API Always supports two distinct format options based on the CSemVer-CI spec.
52+
/// This API supports two distinct format options based on the CSemVer-CI spec.
5353
/// <list>
5454
/// <item><term>P</term><description>Pre-release format using a single '.' as the leading delimiter</description></item>
5555
/// <item><term>R</term><description>Release format using a double dash '--' as the leading delimiter</description></item>

src/Ubiquity.NET.Versioning/FileVersionQuad.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,21 @@ namespace Ubiquity.NET.Versioning
2121
/// <para>A standard .NET <see cref="Version"/> is very similar except that the bit width of each
2222
/// field is larger AND they are signed values. That is, every <see cref="FileVersionQuad"/> can
2323
/// produce a valid .NET <see cref="Version"/>. However, not every <see cref="Version"/> can result
24-
/// in a valid <see cref="FileVersionQuad"/>.
24+
/// in a valid <see cref="FileVersionQuad"/>.</para>
25+
/// <para>A file version is a quad of 4 <see cref="UInt16"/> values. This is convertible to a <see cref="UInt64"/> in the
26+
/// following pattern:
27+
/// (bits are numbered with MSB as the highest numeric value [Actual byte ordering depends on platform endianess])
28+
/// <list type="table">
29+
/// <listheader><term>Field</term><term>Description</term></listheader>
30+
/// <item><term>bits 48-63</term><description> Major part of Build number</description></item>
31+
/// <item><term>bits 32-47</term><description> Minor part of Build number</description></item>
32+
/// <item><term>bits 16-31</term><description> Build part of Build number</description></item>
33+
/// <item><term>bits 0-15</term><description> Revision part of Build number (Odd Numbers indicate a CI build)</description></item>
34+
/// </list>
2535
/// </para>
36+
/// <para>A file version cast as a <see cref="UInt64"/> is <i><b>NOT</b></i> the same as an Ordered version number.
37+
/// The file version includes a "bit" for the status as a CI Build. Thus, a "file version" as a <see cref="UInt64"/> is the
38+
/// ordered version shifted left by one bit and the LSB indicates if it is a CI build</para>
2639
/// </remarks>
2740
public readonly record struct FileVersionQuad( UInt16 Major, UInt16 Minor, UInt16 Build, UInt16 Revision )
2841
: IComparable<FileVersionQuad>

0 commit comments

Comments
 (0)