Skip to content

Commit 0e0f7be

Browse files
committed
Improve GUID IntelliSense docs
***NO_CI***
1 parent 2397f4d commit 0e0f7be

File tree

1 file changed

+9
-0
lines changed
  • nanoFramework.CoreLibrary/System

1 file changed

+9
-0
lines changed

nanoFramework.CoreLibrary/System/Guid.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ public int CompareTo(object value)
190190
/// Returns a 16-element byte array that contains the value of this instance.
191191
/// </summary>
192192
/// <returns>A 16-element byte array.</returns>
193+
/// <remarks>
194+
/// <para>
195+
/// You can use the byte array returned by this method to round-trip a Guid value by calling the <see cref="Guid(byte[])"/> constructor.
196+
/// </para>
197+
/// <para>
198+
/// Note that the order of bytes in the returned byte array is different from the string representation of a Guid value.
199+
/// The order of the beginning four-byte group and the next two two-byte groups is reversed, whereas the order of the last two-byte group and the closing six-byte group is the same.
200+
/// </para>
201+
/// </remarks>
193202
public byte[] ToByteArray()
194203
{
195204
byte[] buffer = new byte[16];

0 commit comments

Comments
 (0)