//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.GameLogic;
///
/// Extension methods for .
///
public static class ShortExtensions
{
///
/// Converts the signed short to an unsigned short.
///
/// The signed value.
/// The unsigned value.
public static ushort ToUnsigned(this short value)
{
return unchecked((ushort)value);
}
///
/// Converts the signed short to an unsigned short.
///
/// The signed value.
/// The unsigned value.
public static short ToSigned(this ushort value)
{
return unchecked((short)value);
}
}