mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-08-03 03:17:59 +08:00
perf: ⚡ nuget update (#32)
[skip ci] Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
@ -36,6 +36,8 @@ public static class IntExtensions
|
||||
/// </summary>
|
||||
public static string ToIpV4(this int me)
|
||||
{
|
||||
return string.Join(".", BitConverter.GetBytes(me).Reverse());
|
||||
var bytes = BitConverter.GetBytes(me);
|
||||
Array.Reverse(bytes);
|
||||
return string.Join('.', bytes);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user