mirror of https://github.com/oliverbooth/X10D
(#14) Remove whitespace from empty lines
This commit is contained in:
parent
db790920aa
commit
8ddf3dfc30
|
@ -16,7 +16,7 @@ namespace X10D.BooleanExtensions
|
||||||
{
|
{
|
||||||
return BitConverter.GetBytes(value);
|
return BitConverter.GetBytes(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts the current Boolean value to the equivalent 8-bit unsigned integer.
|
/// Converts the current Boolean value to the equivalent 8-bit unsigned integer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -43,7 +43,7 @@ namespace X10D.BooleanExtensions
|
||||||
{
|
{
|
||||||
return value ? 1 : 0;
|
return value ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts the current Boolean value to the equivalent decimal number.
|
/// Converts the current Boolean value to the equivalent decimal number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -48,7 +48,7 @@ namespace X10D.ComparableExtensions
|
||||||
{
|
{
|
||||||
return actual.CompareTo(lower) > 0 && actual.CompareTo(upper) < 0;
|
return actual.CompareTo(lower) > 0 && actual.CompareTo(upper) < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the current value clamped to the inclusive range of <paramref name="lower" /> and <paramref name="upper" />.
|
/// Returns the current value clamped to the inclusive range of <paramref name="lower" /> and <paramref name="upper" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace X10D
|
||||||
{
|
{
|
||||||
[Description("The value should be read as though it uses little endian encoding.")]
|
[Description("The value should be read as though it uses little endian encoding.")]
|
||||||
LittleEndian,
|
LittleEndian,
|
||||||
|
|
||||||
[Description("The value should be read as though it uses big endian encoding.")]
|
[Description("The value should be read as though it uses big endian encoding.")]
|
||||||
BigEndian
|
BigEndian
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace X10D.Int16Extensions
|
||||||
{
|
{
|
||||||
return DateTimeOffset.FromUnixTimeMilliseconds(value);
|
return DateTimeOffset.FromUnixTimeMilliseconds(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a
|
/// Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a
|
||||||
/// <see cref="DateTimeOffset" /> value.
|
/// <see cref="DateTimeOffset" /> value.
|
||||||
|
@ -35,7 +35,7 @@ namespace X10D.Int16Extensions
|
||||||
{
|
{
|
||||||
return DateTimeOffset.FromUnixTimeSeconds(value);
|
return DateTimeOffset.FromUnixTimeSeconds(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the current 16-bit signed integer value as an array of bytes.
|
/// Returns the current 16-bit signed integer value as an array of bytes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace X10D.Int32Extensions
|
||||||
{
|
{
|
||||||
return DateTimeOffset.FromUnixTimeMilliseconds(value);
|
return DateTimeOffset.FromUnixTimeMilliseconds(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a
|
/// Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a
|
||||||
/// <see cref="DateTimeOffset" /> value.
|
/// <see cref="DateTimeOffset" /> value.
|
||||||
|
@ -35,7 +35,7 @@ namespace X10D.Int32Extensions
|
||||||
{
|
{
|
||||||
return DateTimeOffset.FromUnixTimeSeconds(value);
|
return DateTimeOffset.FromUnixTimeSeconds(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the current 32-bit signed integer value as an array of bytes.
|
/// Returns the current 32-bit signed integer value as an array of bytes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace X10D.ReflectionExtensions
|
||||||
|
|
||||||
return member.GetCustomAttribute(attribute) is not null;
|
return member.GetCustomAttribute(attribute) is not null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves a custom attribute that is decorated by the current member, and projects it into to a new form.
|
/// Retrieves a custom attribute that is decorated by the current member, and projects it into to a new form.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -95,7 +95,7 @@ namespace X10D.ReflectionExtensions
|
||||||
{
|
{
|
||||||
var exceptionMessage = ExceptionMessages.TypeIsNotInterface;
|
var exceptionMessage = ExceptionMessages.TypeIsNotInterface;
|
||||||
var formattedMessage = string.Format(CultureInfo.CurrentCulture, exceptionMessage, interfaceType);
|
var formattedMessage = string.Format(CultureInfo.CurrentCulture, exceptionMessage, interfaceType);
|
||||||
|
|
||||||
throw new ArgumentException(formattedMessage, nameof(interfaceType));
|
throw new ArgumentException(formattedMessage, nameof(interfaceType));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ namespace X10D.ReflectionExtensions
|
||||||
{
|
{
|
||||||
var exceptionMessage = ExceptionMessages.TypeIsNotClass;
|
var exceptionMessage = ExceptionMessages.TypeIsNotClass;
|
||||||
var formattedMessage = string.Format(CultureInfo.CurrentCulture, exceptionMessage, value);
|
var formattedMessage = string.Format(CultureInfo.CurrentCulture, exceptionMessage, value);
|
||||||
|
|
||||||
throw new ArgumentException(formattedMessage, nameof(value));
|
throw new ArgumentException(formattedMessage, nameof(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ namespace X10D.ReflectionExtensions
|
||||||
{
|
{
|
||||||
var exceptionMessage = ExceptionMessages.TypeIsNotClass;
|
var exceptionMessage = ExceptionMessages.TypeIsNotClass;
|
||||||
var formattedMessage = string.Format(CultureInfo.CurrentCulture, exceptionMessage, type);
|
var formattedMessage = string.Format(CultureInfo.CurrentCulture, exceptionMessage, type);
|
||||||
|
|
||||||
throw new ArgumentException(formattedMessage, nameof(type));
|
throw new ArgumentException(formattedMessage, nameof(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue