Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 6a10d44

Browse files
authored
Remove CLSCompliant attribute which causes compiler warnings. (#57)
Fixes several compiler warnings: TouchRunner/TouchRunner.cs(508,32): warning CS3001: Argument type 'UIWindow' is not CLS-compliant TouchRunner/TouchRunner.cs(516,33): warning CS3003: Type of 'TouchRunner.NavigationController' is not CLS-compliant TouchRunner/TouchRunner.cs(526,27): warning CS3002: Return type of 'TouchRunner.GetViewController()' is not CLS-compliant TouchRunner/TouchOptions.cs(146,27): warning CS3002: Return type of 'TouchOptions.GetViewController()' is not CLS-compliant TouchRunner/TouchViewController.cs(43,23): warning CS3009: 'TouchViewController': base type 'DialogViewController' is not CLS-compliant TouchRunner/TouchViewController.cs(45,43): warning CS3001: Argument type 'RootElement' is not CLS-compliant
1 parent 9db795d commit 6a10d44

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

NUnitLite/TouchRunner/TouchOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ public bool ShowUseNetworkLogger {
143143
public bool SortNames { get; set; }
144144

145145
#if !__WATCHOS__
146-
[CLSCompliant (false)]
147146
public UIViewController GetViewController ()
148147
{
149148
#if TVOS

NUnitLite/TouchRunner/TouchRunner.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ public class TouchRunner : BaseTouchRunner {
505505

506506
UIWindow window;
507507

508-
[CLSCompliant (false)]
509508
public TouchRunner (UIWindow window)
510509
{
511510
if (window == null)
@@ -514,7 +513,6 @@ public TouchRunner (UIWindow window)
514513
this.window = window;
515514
}
516515

517-
[CLSCompliant (false)]
518516
public UINavigationController NavigationController {
519517
get { return (UINavigationController) window.RootViewController; }
520518
}
@@ -525,7 +523,6 @@ protected override void TerminateWithSuccess ()
525523
UIApplication.SharedApplication.PerformSelector (selector, UIApplication.SharedApplication, 0);
526524
}
527525

528-
[CLSCompliant (false)]
529526
public UIViewController GetViewController ()
530527
{
531528
var menu = new RootElement ("Test Runner");

NUnitLite/TouchRunner/TouchViewController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
namespace MonoTouch.NUnit.UI {
4242

43-
[CLSCompliant (false)]
4443
public partial class TouchViewController : DialogViewController {
4544

4645
public TouchViewController (RootElement root) : base (root, true)

0 commit comments

Comments
 (0)