[System] Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime'. (#4820)
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 10 May 2017 14:52:01 +0000 (16:52 +0200)
committerGitHub <noreply@github.com>
Wed, 10 May 2017 14:52:01 +0000 (16:52 +0200)
Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime' to avoid
these compiler-warnings when building xamarin-macios assemblies (which defines
the same types in the ObjCRuntime namespace, and to whom System.dll has an
InternalsVisibleTo attribute):

> xamarin-macios/src/build/watch/watch/Foundation/NSExtensionRequestHandling.g.cs(28,49): warning CS0436: The type `ObjCRuntime.INativeObject' conflicts with the imported type of same name'. Ignoring the imported type definition
> xamarin-macios/src/ObjCRuntime/INativeObject.cs(6,19): (Location of the symbol related to previous warning)
> xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.WatchOS/repl/System.dll (Location of the symbol related to previous warning)

mcs/class/System/Mono.AppleTls/AppleTlsContext.cs
mcs/class/System/Mono.AppleTls/Certificate.cs
mcs/class/System/Mono.AppleTls/Enums.cs
mcs/class/System/Mono.AppleTls/INativeObject.cs
mcs/class/System/Mono.AppleTls/ImportExport.cs
mcs/class/System/Mono.AppleTls/Items.cs
mcs/class/System/Mono.AppleTls/Policy.cs
mcs/class/System/Mono.AppleTls/Trust.cs
mcs/class/System/System.Net/MacProxy.cs

index 2f2fd6b8b3ccfbfe071a894280054986f1de8c1c..c378ba67d9016cc5c71c3a6159290ea24dcee7dc 100644 (file)
@@ -35,7 +35,7 @@ using Mono.Net;
 using Mono.Net.Security;
 using Mono.Util;
 
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 
 namespace Mono.AppleTls
 {
index 1bcf1b2937c265fedd4e4db0bec5f7d03215af65..7463ef1aa3afbb2119954b98b5716149945051a5 100644 (file)
@@ -36,7 +36,7 @@ using System.Runtime.InteropServices;
 using System.Security.Cryptography.X509Certificates;
 using Mono.Net;
 
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 
 namespace Mono.AppleTls {
 
index e71e94ff1444aced2574cd7e6964cb0961494e46..99c952f1713e7fbde2247b2e1c15003bca12c8be 100644 (file)
@@ -1,7 +1,7 @@
 #if MONO_FEATURE_APPLETLS
 // Copyright 2011-2015 Xamarin Inc. All rights reserved.
 
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 
 namespace Mono.AppleTls {
 
index 81c8003ee266e02fcad74078e3c62da7e68395b4..52d17755451be923ae69e21ad1286d4d97e66fe5 100644 (file)
@@ -1,6 +1,6 @@
 using System;
 
-namespace ObjCRuntime {
+namespace ObjCRuntimeInternal {
 
        internal interface INativeObject {
                IntPtr Handle { 
index d968f83851475a711589e27ea27c34ea4d14cda0..0e41e14d0d435b026bc824ec1bb64ecff1faf647 100644 (file)
@@ -31,7 +31,7 @@ using System;
 using System.Runtime.InteropServices;
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 using Mono.Net;
 
 #if MONO_FEATURE_BTLS
index cb37e48e07e46a7f8cec00b610edc00e118feef1..7d28e64a220dd1300e5ef8f0fd8865fb4f30e17d 100644 (file)
@@ -34,7 +34,7 @@
 using System;
 using System.Collections;
 using System.Runtime.InteropServices;
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 using Mono.Net;
 
 namespace Mono.AppleTls {
index b91f7132c07168978cf22ae5f8f2cec3998a825d..4c14f891b7651feabb99f9f6114a285129269340 100644 (file)
@@ -30,7 +30,7 @@
 //
 using System;
 using System.Runtime.InteropServices;
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 using Mono.Net;
 
 namespace Mono.AppleTls {
index 926a7315f07caeda1030b24598ded90efb9bca5a..33a505043e813768b24d5d970360d827dd3d21c2 100644 (file)
@@ -32,7 +32,7 @@ using System;
 using System.Runtime.InteropServices;
 using System.Security;
 using System.Security.Cryptography.X509Certificates;
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 using Mono.Net;
 
 namespace Mono.AppleTls {
index 4bbd4662512eb2cd729ea8ad0324daa6ade14666..f59d7e46ed98024bbe5dc11b3cabf5d02102df25 100644 (file)
@@ -29,7 +29,7 @@ using System.Net;
 using System.Collections.Generic;
 using System.Runtime.InteropServices;
 using System.Threading;
-using ObjCRuntime;
+using ObjCRuntimeInternal;
 
 namespace Mono.Net
 {