mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 02:35:42 +00:00
Suppress CA1812 for value converters
This commit is contained in:
parent
bb39b2eb62
commit
0549184c60
@ -3,6 +3,8 @@ using System.Globalization;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class HexToColorConverter : ValueConverter<Color>
|
internal sealed class HexToColorConverter : ValueConverter<Color>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class IntToBoolConverter : ValueConverter<bool>
|
internal sealed class IntToBoolConverter : ValueConverter<bool>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class IntToEnumConverter<T> : ValueConverter<T>
|
internal sealed class IntToEnumConverter<T> : ValueConverter<T>
|
||||||
where T : struct, Enum
|
where T : struct, Enum
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class MillisecondToTimeSpanConverter : ValueConverter<TimeSpan>
|
internal sealed class MillisecondToTimeSpanConverter : ValueConverter<TimeSpan>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Internal.Attributes;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class StringToEnumConverter<T> : ValueConverter<T>
|
internal sealed class StringToEnumConverter<T> : ValueConverter<T>
|
||||||
where T : struct, Enum
|
where T : struct, Enum
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class UriConverter : ValueConverter<Uri>
|
internal sealed class UriConverter : ValueConverter<Uri>
|
||||||
{
|
{
|
||||||
|
@ -4,6 +4,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class Vector2Converter : ValueConverter<Vector2>
|
internal sealed class Vector2Converter : ValueConverter<Vector2>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -4,6 +4,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class Vector3Converter : ValueConverter<Vector3>
|
internal sealed class Vector3Converter : ValueConverter<Vector3>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class Vector3ToColorConverter : ValueConverter<ColorF>
|
internal sealed class Vector3ToColorConverter : ValueConverter<ColorF>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class Vector3dConverter : ValueConverter<Vector3d>
|
internal sealed class Vector3dConverter : ValueConverter<Vector3d>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class Vector4ToColorConverter : ValueConverter<ColorF>
|
internal sealed class Vector4ToColorConverter : ValueConverter<ColorF>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -4,6 +4,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class Vector4ToVector3Converter : ValueConverter<Vector3>
|
internal sealed class Vector4ToVector3Converter : ValueConverter<Vector3>
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -3,6 +3,8 @@ using VpSharp.Extensions;
|
|||||||
|
|
||||||
namespace VpSharp.Internal.ValueConverters;
|
namespace VpSharp.Internal.ValueConverters;
|
||||||
|
|
||||||
|
#pragma warning disable CA1812
|
||||||
|
|
||||||
internal sealed class VectorToNthComponentConverter : ValueConverter<float>
|
internal sealed class VectorToNthComponentConverter : ValueConverter<float>
|
||||||
{
|
{
|
||||||
private readonly int _componentNumber;
|
private readonly int _componentNumber;
|
||||||
|
Loading…
Reference in New Issue
Block a user