Skip to content

Commit

Permalink
Remove CLSCompliant attribute which causes compiler warnings. (#57)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rolfbjarne authored Apr 27, 2020
1 parent 9db795d commit 6a10d44
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion NUnitLite/TouchRunner/TouchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public bool ShowUseNetworkLogger {
public bool SortNames { get; set; }

#if !__WATCHOS__
[CLSCompliant (false)]
public UIViewController GetViewController ()
{
#if TVOS
Expand Down
3 changes: 0 additions & 3 deletions NUnitLite/TouchRunner/TouchRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ public class TouchRunner : BaseTouchRunner {

UIWindow window;

[CLSCompliant (false)]
public TouchRunner (UIWindow window)
{
if (window == null)
Expand All @@ -514,7 +513,6 @@ public TouchRunner (UIWindow window)
this.window = window;
}

[CLSCompliant (false)]
public UINavigationController NavigationController {
get { return (UINavigationController) window.RootViewController; }
}
Expand All @@ -525,7 +523,6 @@ protected override void TerminateWithSuccess ()
UIApplication.SharedApplication.PerformSelector (selector, UIApplication.SharedApplication, 0);
}

[CLSCompliant (false)]
public UIViewController GetViewController ()
{
var menu = new RootElement ("Test Runner");
Expand Down
1 change: 0 additions & 1 deletion NUnitLite/TouchRunner/TouchViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

namespace MonoTouch.NUnit.UI {

[CLSCompliant (false)]
public partial class TouchViewController : DialogViewController {

public TouchViewController (RootElement root) : base (root, true)
Expand Down

0 comments on commit 6a10d44

Please sign in to comment.