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

Commit d947a7a

Browse files
committed
Merge pull request #2371 from stephentoub/strip_comvisible
Scrub additional [ComVisible] attributes from corefx
2 parents 01a4dd8 + db5a5ef commit d947a7a

File tree

8 files changed

+2
-26
lines changed

8 files changed

+2
-26
lines changed

src/System.Runtime.Extensions/src/System/IO/Path.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.Diagnostics;
55
using System.Diagnostics.Contracts;
6-
using System.Runtime.InteropServices;
76
using System.Security;
87
using System.Text;
98

@@ -12,7 +11,6 @@ namespace System.IO
1211
// Provides methods for processing file system strings in a cross-platform manner.
1312
// Most of the methods don't do a complete parsing (such as examining a UNC hostname),
1413
// but they will handle most string operations.
15-
[ComVisible(true)]
1614
public static partial class Path
1715
{
1816
// Platform specific alternate directory separator character.

src/System.Runtime.Extensions/src/System/Random.cs

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

2020
namespace System
2121
{
22-
[System.Runtime.InteropServices.ComVisible(true)]
2322
public class Random
2423
{
2524
//

src/System.Security.Cryptography.Encryption/src/System/Security/Cryptography/CryptoStream.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33

44
using System.Diagnostics.Contracts;
55
using System.IO;
6-
using System.Runtime.InteropServices;
7-
86

97
namespace System.Security.Cryptography
108
{
11-
[ComVisible(true)]
129
public class CryptoStream : Stream, IDisposable
1310
{
1411
// Member veriables

src/System.Threading/src/System/Threading/Barrier.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
//
1111
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
1212

13-
using System;
14-
using System.Collections.Generic;
1513
using System.Diagnostics;
16-
using System.Runtime.InteropServices;
17-
using System.Threading;
1814
using System.Security;
1915

2016
namespace System.Threading
@@ -78,7 +74,6 @@ public BarrierPostPhaseException(string message, Exception innerException)
7874
/// completed.
7975
/// </para>
8076
/// </remarks>
81-
[ComVisible(false)]
8277
[DebuggerDisplay("Participant Count={ParticipantCount},Participants Remaining={ParticipantsRemaining}")]
8378
public class Barrier : IDisposable
8479
{

src/System.Threading/src/System/Threading/CountdownEvent.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
//
88
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
99

10-
using System;
1110
using System.Diagnostics;
12-
using System.Runtime.InteropServices;
13-
using System.Threading;
1411

1512
namespace System.Threading
1613
{
@@ -24,7 +21,6 @@ namespace System.Threading
2421
/// completed, and Reset, which should only be used when no other threads are
2522
/// accessing the event.
2623
/// </remarks>
27-
[ComVisible(false)]
2824
[DebuggerDisplay("Initial Count={InitialCount}, Current Count={CurrentCount}")]
2925
public class CountdownEvent : IDisposable
3026
{

src/System.Threading/src/System/Threading/Semaphore.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using System.IO;
5-
using Microsoft.Win32;
64
using Microsoft.Win32.SafeHandles;
7-
using System.Security;
8-
using System.Security.Permissions;
9-
using System.Runtime.Versioning;
10-
using System.Runtime.ConstrainedExecution;
5+
using System.IO;
116
using System.Runtime.InteropServices;
7+
using System.Security;
128

139
namespace System.Threading
1410
{
15-
[ComVisibleAttribute(false)]
1611
public sealed partial class Semaphore : WaitHandle
1712
{
1813
private const int MAX_PATH = 260;

src/System.Xml.XmlSerializer/src/System/Collections/ArrayList.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
**
1010
=============================================================================*/
1111

12-
using System;
1312
using System.Collections.Generic;
1413
using System.Diagnostics;
1514

1615

1716
namespace System.Collections
1817
{
1918
[DebuggerDisplay("Count = {Count}")]
20-
[System.Runtime.InteropServices.ComVisible(true)]
2119
internal class ArrayList : List<object>
2220
{
2321
public ArrayList() { }

src/System.Xml.XmlSerializer/src/System/Collections/InternalHashtable.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
**
1010
=============================================================================*/
1111

12-
using System;
1312
using System.Collections.Generic;
1413
using System.Diagnostics;
1514

1615

1716
namespace System.Collections
1817
{
1918
[DebuggerDisplay("Count = {Count}")]
20-
[System.Runtime.InteropServices.ComVisible(true)]
2119
internal class InternalHashtable : Dictionary<object, object>
2220
{
2321
public InternalHashtable()

0 commit comments

Comments
 (0)