Suppress cls-compliance warnings (should be restored when the code goes public).

This commit is contained in:
the_fiddler 2008-12-02 16:02:08 +00:00
parent 86610324fc
commit a29d72fc90
5 changed files with 20 additions and 4 deletions

View file

@ -13,6 +13,9 @@ using System.Runtime.InteropServices;
namespace OpenTK.Math namespace OpenTK.Math
{ {
// Todo: Remove this warning when the code goes public.
#pragma warning disable 3019
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
internal struct Matrix3d : IEquatable<Matrix3d> internal struct Matrix3d : IEquatable<Matrix3d>
@ -807,4 +810,6 @@ namespace OpenTK.Math
#endregion #endregion
} }
#pragma warning restore 3019
} }

View file

@ -13,6 +13,9 @@ using System.Runtime.InteropServices;
namespace OpenTK.Math namespace OpenTK.Math
{ {
// Todo: Remove this warning when the code goes public.
#pragma warning disable 3019
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
internal struct Matrix4d : IEquatable<Matrix4d> internal struct Matrix4d : IEquatable<Matrix4d>
@ -75,7 +78,7 @@ namespace OpenTK.Math
{ {
get get
{ {
switch( row ) switch (row)
{ {
case 0: case 0:
switch (column) switch (column)
@ -122,7 +125,7 @@ namespace OpenTK.Math
} }
set set
{ {
switch( row ) switch (row)
{ {
case 0: case 0:
switch (column) switch (column)
@ -166,7 +169,8 @@ namespace OpenTK.Math
} }
throw new IndexOutOfRangeException(); throw new IndexOutOfRangeException();
} } }
}
/// <summary>Gets the component at the index into the matrix.</summary> /// <summary>Gets the component at the index into the matrix.</summary>
/// <param name="index">The index into the components of the matrix.</param> /// <param name="index">The index into the components of the matrix.</param>
@ -2361,4 +2365,6 @@ namespace OpenTK.Math
#endregion #endregion
} }
}
#pragma warning restore 3019
}

Binary file not shown.

Binary file not shown.

View file

@ -16,6 +16,9 @@ using System.Text.RegularExpressions;
namespace OpenTK.Math namespace OpenTK.Math
{ {
// Todo: Remove this warning when the code goes public.
#pragma warning disable 3019
/// <summary>A 4-dimensional vector using double-precision floating point numbers.</summary> /// <summary>A 4-dimensional vector using double-precision floating point numbers.</summary>
[Serializable] [Serializable]
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
@ -1351,4 +1354,6 @@ namespace OpenTK.Math
#endregion #endregion
} }
#pragma warning restore 3019
} }