Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 0fe4629

Browse files
committed
Add ulong.ToUtf8Bytes()
1 parent 773f03f commit 0fe4629

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ public static byte[] ToUtf8Bytes(this long longVal)
313313
return FastToUtf8Bytes(longVal.ToString());
314314
}
315315

316+
public static byte[] ToUtf8Bytes(this ulong ulongVal)
317+
{
318+
return FastToUtf8Bytes(ulongVal.ToString());
319+
}
320+
316321
public static byte[] ToUtf8Bytes(this double doubleVal)
317322
{
318323
var doubleStr = doubleVal.ToString(CultureInfo.InvariantCulture.NumberFormat);

0 commit comments

Comments
 (0)