Cleanup security permission and resource consumption attribute references (dotnet...
authorJan Kotas <jkotas@microsoft.com>
Sat, 2 Feb 2019 08:09:09 +0000 (00:09 -0800)
committerGitHub <noreply@github.com>
Sat, 2 Feb 2019 08:09:09 +0000 (00:09 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/2c2e4a599889652ec579a870054b0f8915ea70fd

70 files changed:
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft.VisualBasic.Core.vbproj
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/CompilerServices/Conversions.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/FileIO/FileSystem.Windows.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/FileIO/FileSystem.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/FileIO/MalformedLineException.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/FileIO/TextFieldParser.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/Helpers/NativeMethods.Windows.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/Helpers/NativeTypes.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/Helpers/UnsafeNativeMethods.vb
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/Information.vb
src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft/Win32/SystemEvents.cs
src/libraries/System.Data.Common/src/System/Data/DataTable.cs
src/libraries/System.Data.Odbc/src/System.Data.Odbc.csproj
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcConnection.cs
src/libraries/System.Data.SqlClient/src/System.Data.SqlClient.csproj
src/libraries/System.Data.SqlClient/src/System/Data/Sql/InvalidUdtException.cs
src/libraries/System.Data.SqlClient/src/System/Data/Sql/SqlNorm.cs
src/libraries/System.Data.SqlClient/src/System/Data/SqlClient/SqlFileStream.Windows.cs
src/libraries/System.Diagnostics.EventLog/src/System.Diagnostics.EventLog.csproj
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/EventLogInternal.cs
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/UnsafeNativeMethods.cs
src/libraries/System.Diagnostics.TextWriterTraceListener/src/System/Diagnostics/ConsoleTraceListener.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADAMStoreCtx.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADStoreCtx.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AdvancedFilters.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AuthenticablePrincipal.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Computer.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Context.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Group.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Principal.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/UnknownPrincipal.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/User.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/exceptions.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/interopt.cs
src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj
src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/ldap/LdapConnection.cs
src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/ldap/LdapSessionOptions.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/DirectoryContext.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/Exception.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/Utils.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryEntry.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/SearchResult.cs
src/libraries/System.Drawing.Common/src/System/Drawing/Design/CategoryNameCollection.cs
src/libraries/System.Drawing.Common/tests/Drawing2D/GraphicsPathIteratorTests.cs
src/libraries/System.Drawing.Common/tests/Text/PrivateFontCollectionTests.cs
src/libraries/System.Drawing.Common/tests/mono/System.Drawing.Imaging/JpegCodecTests.cs
src/libraries/System.Drawing.Common/tests/mono/System.Drawing/BitmapTests.cs
src/libraries/System.Drawing.Common/tests/mono/System.Imaging/MetafileTest.cs
src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeAccessRule.cs
src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeAuditRule.cs
src/libraries/System.IO.Pipes/src/System/IO/Pipes/PipeSecurity.cs
src/libraries/System.Management/src/System.Management.csproj
src/libraries/System.Management/src/System/Management/InteropClasses/WMIInterop.cs
src/libraries/System.Management/src/System/Management/ManagementException.cs
src/libraries/System.Management/src/System/Management/ManagementScope.cs
src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/SurrogateDataContract.cs
src/libraries/System.Reflection.Context/src/System.Reflection.Context.csproj
src/libraries/System.Runtime.Caching/src/System.Runtime.Caching.csproj
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/CacheMemoryMonitor.cs
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/Dbg.cs
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/FileChangeNotificationSystem.cs
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/HostFileChangeMonitor.cs
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/MemoryCache.cs
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/MemoryCacheStore.cs
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/SRef.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CertUsageType.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/MyXmlDocument.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/SignedXml.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/Utils.cs

index 2f8301ec7c3281ca535c7e726f0a0ed535ccf6f3..7cbc84d9def7e2b276ff52c3b63e3f0a7aff27ab 100644 (file)
     <Reference Include="System.Runtime" />
     <Reference Include="System.Runtime.Extensions" />
     <Reference Include="System.Runtime.InteropServices" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Text.RegularExpressions" />
     <Reference Include="System.Threading" />
     <Reference Include="System.Threading.Tasks" />
index cbdfa1991eb00ec20e3cf1a468c3fb1ac94d5d6b..872255a2894f02561295703fcd3c0e61ef5bdddf 100644 (file)
@@ -8,7 +8,6 @@ Imports System.Globalization
 Imports System.Diagnostics
 Imports System.Dynamic
 Imports System.Reflection
-Imports System.Security
 
 Imports Microsoft.VisualBasic.CompilerServices.Symbols
 Imports Microsoft.VisualBasic.CompilerServices.ConversionResolution
@@ -2490,7 +2489,6 @@ MisMatch:
             Return ChangeType(Expression, TargetType, False)
         End Function
 
-        <SecuritySafeCritical()>
         Friend Shared Function ChangeType(ByVal Expression As Object, ByVal TargetType As Type, ByVal Dynamic As Boolean) As Object
             If TargetType Is Nothing Then
                 Throw New ArgumentException(SR.Format(SR.Argument_InvalidNullValue1, "TargetType"))
index 977a91e9f781f175b7dbcbd14dea996cbf1853bb..983b7aa689211d73669f917b6f7c3ab04ec5ee20 100644 (file)
@@ -8,7 +8,6 @@ Imports System
 Imports System.ComponentModel
 Imports System.Diagnostics
 Imports System.Security
-Imports System.Runtime.Versioning
 Imports System.Text
 
 Imports Microsoft.VisualBasic.CompilerServices
@@ -33,9 +32,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' Copy/MoveFile will call this directly. Copy/MoveDirectory will call ShellCopyOrMoveDirectory first
         ''' to change the path if needed.
         ''' </remarks>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub ShellCopyOrMove(ByVal Operation As CopyOrMove, ByVal TargetType As FileOrDirectory,
             ByVal FullSourcePath As String, ByVal FullTargetPath As String, ByVal ShowUI As UIOptionInternal, ByVal OnUserCancel As UICancelOption)
             Debug.Assert(System.Enum.IsDefined(GetType(CopyOrMove), Operation))
@@ -98,9 +94,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <remarks>
         ''' We don't need to consider Recursive flag here since we already verify that in DeleteDirectory.
         ''' </remarks>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub ShellDelete(ByVal FullPath As String,
             ByVal ShowUI As UIOptionInternal, ByVal recycle As RecycleOption, ByVal OnUserCancel As UICancelOption, ByVal FileOrDirectory As FileOrDirectory)
 
@@ -126,15 +119,9 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="FullTarget">The full path to the target. Nothing if this is a Delete operation.</param>
         ''' <param name="OnUserCancel">Value from UICancelOption, specifying to throw or not when user cancels the operation.</param>
         '''<remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt, UI:=True)>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub ShellFileOperation(ByVal OperationType As SHFileOperationType, ByVal OperationFlags As ShFileOperationFlags,
             ByVal FullSource As String, ByVal FullTarget As String, ByVal OnUserCancel As UICancelOption, ByVal FileOrDirectory As FileOrDirectory)
 
-            ' Apply HostProtectionAttribute(UI = true) to indicate this function belongs to UI type.
-
             Debug.Assert(System.Enum.IsDefined(GetType(SHFileOperationType), OperationType))
             Debug.Assert(OperationType <> SHFileOperationType.FO_RENAME, "Don't call Shell to rename!!!")
             Debug.Assert(FullSource <> "" And IO.Path.IsPathRooted(FullSource), "Invalid FullSource path!!!")
@@ -173,7 +160,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="SourcePath">The source file / directory path.</param>
         ''' <param name="TargetPath">The target file / directory path. Nothing in case of delete.</param>
         ''' <returns>A fully initialized SHFILEOPSTRUCT.</returns>
-        <SecurityCritical()>
         Private Shared Function GetShellOperationInfo(
                             ByVal OperationType As SHFileOperationType, ByVal OperationFlags As ShFileOperationFlags,
                             ByVal SourcePath As String, Optional ByVal TargetPath As String = Nothing) As SHFILEOPSTRUCT
@@ -190,7 +176,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="SourcePaths">A string array containing the paths of source files. Must not be empty.</param>
         ''' <param name="TargetPath">The target file / directory path. Nothing in case of delete.</param>
         ''' <returns>A fully initialized SHFILEOPSTRUCT.</returns>
-        <SecurityCritical()>
         Private Shared Function GetShellOperationInfo(
                             ByVal OperationType As SHFileOperationType, ByVal OperationFlags As ShFileOperationFlags,
                             ByVal SourcePaths() As String, Optional ByVal TargetPath As String = Nothing) As SHFILEOPSTRUCT
@@ -291,7 +276,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' - Exception message does not contain the path since at this point it is normalized.
         ''' - Instead of using PInvoke of GetMessage and MakeHRFromErrorCode, use managed code.
         ''' </remarks>
-        <SecurityCritical()>
         Private Shared Sub ThrowWinIOError(ByVal errorCode As Integer)
             Select Case errorCode
                 Case NativeTypes.ERROR_FILE_NOT_FOUND
index 08a1fbc244772aa9f17c328aa458f8f40fc31f4b..0ea10420cfd012aeffd17af8ca4e49f23418ae90 100644 (file)
@@ -11,7 +11,6 @@ Imports System.ComponentModel
 Imports System.Diagnostics
 Imports System.Globalization
 Imports System.Security
-Imports System.Runtime.Versioning
 Imports System.Text
 
 Imports Microsoft.VisualBasic.CompilerServices
@@ -22,7 +21,6 @@ Namespace Microsoft.VisualBasic.FileIO
     '''  This class represents the file system on a computer. It allows browsing the existing drives, special directories;
     '''  and also contains some commonly use methods for IO tasks.
     ''' </summary>
-    '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
     Partial Public Class FileSystem
         ''' <summary>
         ''' Return the names of all available drives on the computer.
@@ -374,8 +372,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="sourceDirectoryName">The path to the source directory, can be relative or absolute.</param>
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String)
             CopyOrMoveDirectory(CopyOrMove.Copy, sourceDirectoryName, destinationDirectoryName,
                                 overwrite:=False, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -388,8 +384,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceDirectoryName">The path to the source directory, can be relative or absolute.</param>
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="overwrite">True to overwrite existing files with the same name. Otherwise False.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String, ByVal overwrite As Boolean)
             CopyOrMoveDirectory(CopyOrMove.Copy, sourceDirectoryName, destinationDirectoryName,
                                 overwrite, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -403,8 +397,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceDirectoryName">The path to the source directory, can be relative or absolute.</param>
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String, ByVal showUI As UIOption)
             CopyOrMoveDirectory(CopyOrMove.Copy, sourceDirectoryName, destinationDirectoryName,
                                 overwrite:=False, ToUIOptionInternal(showUI), UICancelOption.ThrowException)
@@ -429,8 +421,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="sourceFileName">The path to the source file, can be relative or absolute.</param>
         ''' <param name="destinationFileName">The path to the destination file, can be relative or absolute. Parent directory will always be created.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyFile(ByVal sourceFileName As String, ByVal destinationFileName As String)
             CopyOrMoveFile(CopyOrMove.Copy, sourceFileName, destinationFileName,
                            overwrite:=False, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -442,8 +432,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceFileName">The path to the source file, can be relative or absolute.</param>
         ''' <param name="destinationFileName">The path to the destination file, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="overwrite">True to overwrite existing file with the same name. Otherwise False.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyFile(ByVal sourceFileName As String, ByVal destinationFileName As String, ByVal overwrite As Boolean)
             CopyOrMoveFile(CopyOrMove.Copy, sourceFileName, destinationFileName,
                            overwrite, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -457,8 +445,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceFileName">The path to the source file, can be relative or absolute.</param>
         ''' <param name="destinationFileName">The path to the destination file, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyFile(ByVal sourceFileName As String, ByVal destinationFileName As String, ByVal showUI As UIOption)
             CopyOrMoveFile(CopyOrMove.Copy, sourceFileName, destinationFileName,
                            overwrite:=False, ToUIOptionInternal(showUI), UICancelOption.ThrowException)
@@ -474,8 +460,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
         ''' <param name="onUserCancel">ThrowException to throw exception if user cancels the operation. Otherwise DoNothing.</param>
         ''' <remarks>onUserCancel will be ignored if showUI = HideDialogs.</remarks>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub CopyFile(ByVal sourceFileName As String, ByVal destinationFileName As String, ByVal showUI As UIOption, ByVal onUserCancel As UICancelOption)
             CopyOrMoveFile(CopyOrMove.Copy, sourceFileName, destinationFileName,
                            overwrite:=False, ToUIOptionInternal(showUI), onUserCancel)
@@ -502,8 +486,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="directory">The path to the directory.</param>
         ''' <param name="onDirectoryNotEmpty">DeleteAllContents to delete everything. ThrowIfDirectoryNonEmpty to throw exception if the directory is not empty.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub DeleteDirectory(ByVal directory As String, ByVal onDirectoryNotEmpty As DeleteDirectoryOption)
             DeleteDirectoryInternal(directory, onDirectoryNotEmpty,
                 UIOptionInternal.NoUI, RecycleOption.DeletePermanently, UICancelOption.ThrowException)
@@ -515,8 +497,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="directory">The path to the directory.</param>
         ''' <param name="showUI">True to shows progress window. Otherwise, False.</param>
         ''' <param name="recycle">SendToRecycleBin to delete to Recycle Bin. Otherwise DeletePermanently.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub DeleteDirectory(ByVal directory As String, ByVal showUI As UIOption, ByVal recycle As RecycleOption)
             DeleteDirectoryInternal(directory, DeleteDirectoryOption.DeleteAllContents,
                                     ToUIOptionInternal(showUI), recycle, UICancelOption.ThrowException)
@@ -529,8 +509,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
         ''' <param name="recycle">SendToRecycleBin to delete to Recycle Bin. Otherwise DeletePermanently.</param>
         ''' <param name="onUserCancel">Throw exception when user cancel the UI operation or not.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub DeleteDirectory(ByVal directory As String,
             ByVal showUI As UIOption, ByVal recycle As RecycleOption, ByVal onUserCancel As UICancelOption)
             DeleteDirectoryInternal(directory, DeleteDirectoryOption.DeleteAllContents,
@@ -541,8 +519,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' Delete the given file.
         ''' </summary>
         ''' <param name="file">The path to the file.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub DeleteFile(ByVal file As String)
             DeleteFileInternal(file, UIOptionInternal.NoUI, RecycleOption.DeletePermanently, UICancelOption.ThrowException)
         End Sub
@@ -553,8 +529,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="file">The path to the file.</param>
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
         ''' <param name="recycle">SendToRecycleBin to delete to Recycle Bin. Otherwise DeletePermanently.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub DeleteFile(ByVal file As String, ByVal showUI As UIOption, ByVal recycle As RecycleOption)
             DeleteFileInternal(file, ToUIOptionInternal(showUI), recycle, UICancelOption.ThrowException)
         End Sub
@@ -568,8 +542,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="onUserCancel">Throw exception when user cancel the UI operation or not.</param>
         ''' <exception cref="IO.Path.GetFullPath">IO.Path.GetFullPath() exceptions: if FilePath is invalid.</exception>
         ''' <exception cref="IO.FileNotFoundException">if a file does not exist at FilePath</exception>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub DeleteFile(ByVal file As String, ByVal showUI As UIOption, ByVal recycle As RecycleOption,
                                      ByVal onUserCancel As UICancelOption)
 
@@ -582,8 +554,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="sourceDirectoryName">The path to the source directory, can be relative or absolute.</param>
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String)
             CopyOrMoveDirectory(CopyOrMove.Move, sourceDirectoryName, destinationDirectoryName,
                 overwrite:=False, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -595,8 +565,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="sourceDirectoryName">The path to the source directory, can be relative or absolute.</param>
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>        ''' <param name="overwrite">True to overwrite existing files with the same name. Otherwise False.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String, ByVal overwrite As Boolean)
             CopyOrMoveDirectory(CopyOrMove.Move, sourceDirectoryName, destinationDirectoryName,
                 overwrite, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -610,8 +578,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceDirectoryName">The path to the source directory, can be relative or absolute.</param>
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String, ByVal showUI As UIOption)
             CopyOrMoveDirectory(CopyOrMove.Move, sourceDirectoryName, destinationDirectoryName,
                                 overwrite:=False, ToUIOptionInternal(showUI), UICancelOption.ThrowException)
@@ -626,8 +592,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="destinationDirectoryName">The path to the target directory, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
         ''' <param name="onUserCancel">ThrowException to throw exception if user cancels the operation. Otherwise DoNothing.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveDirectory(ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String, ByVal showUI As UIOption, ByVal onUserCancel As UICancelOption)
             CopyOrMoveDirectory(CopyOrMove.Move, sourceDirectoryName, destinationDirectoryName,
                                 overwrite:=False, ToUIOptionInternal(showUI), onUserCancel)
@@ -638,8 +602,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="sourceFileName">The path to the source file, can be relative or absolute.</param>
         ''' <param name="destinationFileName">The path to the destination file, can be relative or absolute. Parent directory will always be created.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveFile(ByVal sourceFileName As String, ByVal destinationFileName As String)
             CopyOrMoveFile(CopyOrMove.Move, sourceFileName, destinationFileName,
                            overwrite:=False, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -651,8 +613,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceFileName">The path to the source file, can be relative or absolute.</param>
         ''' <param name="destinationFileName">The path to the destination file, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="overwrite">True to overwrite existing file with the same name. Otherwise False.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveFile(ByVal sourceFileName As String, ByVal destinationFileName As String, ByVal overwrite As Boolean)
             CopyOrMoveFile(CopyOrMove.Move, sourceFileName, destinationFileName,
                            overwrite, UIOptionInternal.NoUI, UICancelOption.ThrowException)
@@ -666,8 +626,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="sourceFileName">The path to the source file, can be relative or absolute.</param>
         ''' <param name="destinationFileName">The path to the destination file, can be relative or absolute. Parent directory will always be created.</param>
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveFile(ByVal sourceFileName As String, ByVal destinationFileName As String, ByVal showUI As UIOption)
             CopyOrMoveFile(CopyOrMove.Move, sourceFileName, destinationFileName,
                            overwrite:=False, ToUIOptionInternal(showUI), UICancelOption.ThrowException)
@@ -683,8 +641,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="showUI">ShowDialogs to display progress and confirmation dialogs. Otherwise HideDialogs.</param>
         ''' <param name="onUserCancel">ThrowException to throw exception if user cancels the operation. Otherwise DoNothing.</param>
         ''' <remarks>onUserCancel will be ignored if showUI = HideDialogs.</remarks>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Public Shared Sub MoveFile(ByVal sourceFileName As String, ByVal destinationFileName As String, ByVal showUI As UIOption, ByVal onUserCancel As UICancelOption)
             CopyOrMoveFile(CopyOrMove.Move, sourceFileName, destinationFileName,
                            overwrite:=False, ToUIOptionInternal(showUI), onUserCancel)
@@ -931,9 +887,6 @@ Namespace Microsoft.VisualBasic.FileIO
         '''     IOException: Target directory is under source directory - cyclic operation.
         '''     IOException: TargetDirectoryPath points to an existing file.
         '''     IOException: Some files and directories can not be copied.</exception>
-        <SecuritySafeCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub CopyOrMoveDirectory(ByVal operation As CopyOrMove,
                                                ByVal sourceDirectoryName As String, ByVal destinationDirectoryName As String,
                                                ByVal overwrite As Boolean, ByVal showUI As UIOptionInternal, ByVal onUserCancel As UICancelOption)
@@ -1003,8 +956,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="targetDirectoryPath">Target path - must be full path.</param>
         ''' <param name="Overwrite">True to overwrite the files. Otherwise, False.</param>
         ''' <exception cref="IO.IOException">Some files or directories cannot be copied or moved.</exception>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub FxCopyOrMoveDirectory(ByVal operation As CopyOrMove,
                                                  ByVal sourceDirectoryPath As String, ByVal targetDirectoryPath As String, ByVal overwrite As Boolean)
 
@@ -1054,8 +1005,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="SourceDirectoryNode">The source node. Only copy / move directories contained in the source node.</param>
         ''' <param name="Overwrite">True to overwrite sub-files. Otherwise False.</param>
         ''' <param name="Exceptions">The list of accumulated exceptions while doing the copy / move</param>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub CopyOrMoveDirectoryNode(ByVal Operation As CopyOrMove,
                                                    ByVal SourceDirectoryNode As DirectoryNode, ByVal Overwrite As Boolean, ByVal Exceptions As ListDictionary)
 
@@ -1137,9 +1086,6 @@ Namespace Microsoft.VisualBasic.FileIO
         '''   ArgumenNullException: If NewName = "".
         '''   ArgumentException: If NewName contains path information.
         ''' </exception>
-        <SecuritySafeCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub CopyOrMoveFile(ByVal operation As CopyOrMove,
                                           ByVal sourceFileName As String, ByVal destinationFileName As String,
                                           ByVal overwrite As Boolean, ByVal showUI As UIOptionInternal, ByVal onUserCancel As UICancelOption
@@ -1216,9 +1162,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="recycle">SendToRecycleBin to delete to Recycle Bin. Otherwise DeletePermanently.</param>
         ''' <param name="onUserCancel">Throw exception when user cancel the UI operation or not.</param>
         ''' <remarks>If user wants shell features, onDirectoryNotEmpty is ignored.</remarks>
-        <SecuritySafeCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub DeleteDirectoryInternal(ByVal directory As String, ByVal onDirectoryNotEmpty As DeleteDirectoryOption,
                                                    ByVal showUI As UIOptionInternal, ByVal recycle As RecycleOption, ByVal onUserCancel As UICancelOption)
 
@@ -1259,9 +1202,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="recycle">DeletePermanently or SendToRecycleBin</param>
         ''' <param name="onUserCancel">DoNothing or ThrowException</param>
         ''' <remarks></remarks>
-        <SecuritySafeCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Private Shared Sub DeleteFileInternal(ByVal file As String, ByVal showUI As UIOptionInternal, ByVal recycle As RecycleOption,
                                               ByVal onUserCancel As UICancelOption)
             ' Verify enums
index f530ce7eb5fdddc9818eadfd19658d9a09198178..2efdab036f5c4a59e5c03db6addb1d2f119e6bb3 100644 (file)
@@ -7,8 +7,6 @@ Option Strict On
 Imports System
 Imports System.ComponentModel
 Imports System.Globalization
-Imports System.Security
-Imports System.Security.Permissions
 
 Imports Microsoft.VisualBasic.CompilerServices.Utils
 
@@ -110,8 +108,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="info"></param>
         ''' <param name="context"></param>
         ''' <remarks></remarks>
-        <SecurityCritical()>
-        <SecurityPermission(SecurityAction.Demand, SerializationFormatter:=True)>
         <EditorBrowsable(EditorBrowsableState.Advanced)>
         Public Overrides Sub GetObjectData(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
             If info IsNot Nothing Then ' Fix FxCop violation ValidateArgumentsOfPublicMethods.
index 71130c82d568ae0e9bffa3693bc9d4aefef497cb..4b503cd393c4335a391c674e294550a51a2efe8e 100644 (file)
@@ -29,7 +29,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="path">The path of the file to be parsed</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal path As String)
 
             ' Default to UTF-8 and detect encoding
@@ -42,7 +41,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="path">The path of the file to be parsed</param>
         ''' <param name="defaultEncoding">The decoding to default to if encoding isn't determined from file</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal path As String, ByVal defaultEncoding As System.Text.Encoding)
 
             ' Default to detect encoding
@@ -56,7 +54,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="defaultEncoding">The decoding to default to if encoding isn't determined from file</param>
         ''' <param name="detectEncoding">Indicates whether or not to try to detect the encoding from the BOM</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal path As String, ByVal defaultEncoding As System.Text.Encoding, ByVal detectEncoding As Boolean)
 
             InitializeFromPath(path, defaultEncoding, detectEncoding)
@@ -67,7 +64,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="stream"></param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal stream As Stream)
 
             ' Default to UTF-8 and detect encoding
@@ -80,7 +76,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="stream"></param>
         ''' <param name="defaultEncoding">The decoding to default to if encoding isn't determined from file</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal stream As Stream, ByVal defaultEncoding As System.Text.Encoding)
 
             ' Default to detect encoding
@@ -94,7 +89,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="defaultEncoding">The decoding to default to if encoding isn't determined from file</param>
         ''' <param name="detectEncoding">Indicates whether or not to try to detect the encoding from the BOM</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal stream As Stream, ByVal defaultEncoding As System.Text.Encoding, ByVal detectEncoding As Boolean)
 
             InitializeFromStream(stream, defaultEncoding, detectEncoding)
@@ -108,7 +102,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' <param name="detectEncoding">Indicates whether or not to try to detect the encoding from the BOM</param>
         ''' <param name="leaveOpen">Indicates whether or not to leave the passed in stream open</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal stream As Stream, ByVal defaultEncoding As System.Text.Encoding, ByVal detectEncoding As Boolean, ByVal leaveOpen As Boolean)
 
             m_LeaveOpen = leaveOpen
@@ -120,7 +113,6 @@ Namespace Microsoft.VisualBasic.FileIO
         ''' </summary>
         ''' <param name="reader">The TextReader that does the reading</param>
         ''' <remarks></remarks>
-        '<HostProtection(Resources:=HostProtectionResource.ExternalProcessMgmt)>
         Public Sub New(ByVal reader As TextReader)
 
             If reader Is Nothing Then
index 0470a56c0d44a316e934fbe45c554cf396e6a17b..5bec609da15b79be8981b0ca7d8659f3ddb34552 100644 (file)
@@ -5,16 +5,12 @@ Option Strict On
 Option Explicit On
 
 Imports System
-Imports System.Security
 Imports System.Runtime.InteropServices
-Imports System.Runtime.Versioning
 
 Namespace Microsoft.VisualBasic.CompilerServices
 
     <ComVisible(False)>
     Friend NotInheritable Class NativeMethods
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.None)>
         <PreserveSig()>
         Friend Declare Function _
             CloseHandle _
@@ -26,9 +22,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' </summary>
         ''' <param name="lpFileOp">32-bit SHFILEOPSTRUCT</param>
         ''' <returns>0 if successful, non-zero otherwise.</returns>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
-        <ResourceConsumption(ResourceScope.Machine)>
         Friend Shared Function SHFileOperation(ByRef lpFileOp As SHFILEOPSTRUCT) As Int32
             If (IntPtr.Size = 4) Then ' 32-bit platforms
                 Return SHFileOperation32(lpFileOp)
@@ -67,8 +60,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' You cannot use SHFileOperation to move special folders My Documents and My Pictures from a local drive to a remote computer.
         ''' File deletion is recursive unless you set the FOF_NORECURSION flag.
         ''' </remarks>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
         <DllImport("shell32.dll", CharSet:=CharSet.Auto, EntryPoint:="SHFileOperation", SetLastError:=True, ThrowOnUnmappableChar:=True)>
         Private Shared Function SHFileOperation32(ByRef lpFileOp As SHFILEOPSTRUCT) As Int32
         End Function
@@ -114,8 +105,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' <summary>
         ''' Copies, moves, renames or deletes a file system object on 64-bit platforms.
         ''' </summary>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
         <DllImport("shell32.dll", CharSet:=CharSet.Auto, EntryPoint:="SHFileOperation", SetLastError:=True, ThrowOnUnmappableChar:=True)>
         Private Shared Function SHFileOperation64(ByRef lpFileOp As SHFILEOPSTRUCT64) As Int32
         End Function
@@ -205,8 +194,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' Win 95/98/Me: SHChangeNotify is supported by Microsoft Layer for Unicode.
         ''' To use this http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mslu/winprog/microsoft_layer_for_unicode_on_windows_95_98_me_systems.asp
         ''' </remarks>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.None)>
         <DllImport("shell32.dll", CharSet:=CharSet.Auto, SetLastError:=True)>
         Friend Shared Sub SHChangeNotify(ByVal wEventId As UInt32, ByVal uFlags As UInt32,
                 ByVal dwItem1 As IntPtr, ByVal dwItem2 As IntPtr)
@@ -236,8 +223,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' The MoveFileEx function moves an existing file or directory.
         ''' http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/movefileex.asp
         ''' </summary>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.Machine)>
         <DllImport("kernel32",
              PreserveSig:=True,
              CharSet:=CharSet.Auto,
index cfef037be1c6702483a8dcd7ce699ff79ea2c5ae..3ac3b77a68f750c5a0b9b558c6194503e2264525 100644 (file)
@@ -6,8 +6,6 @@ Option Strict On
 
 Imports System
 Imports System.Diagnostics
-Imports System.Security
-Imports System.Runtime.ConstrainedExecution
 Imports System.Runtime.InteropServices
 Imports Microsoft.Win32.SafeHandles
 
@@ -28,8 +26,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
             Public lpSecurityDescriptor As IntPtr
             Public bInheritHandle As Boolean
 
-            <SecuritySafeCritical()>
-            <ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)>
             Public Overloads Sub Dispose() Implements IDisposable.Dispose
                 If lpSecurityDescriptor <> IntPtr.Zero Then
                     UnsafeNativeMethods.LocalFree(lpSecurityDescriptor)
@@ -49,23 +45,18 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' This is required because call to constructor of SafeHandle is not allowed in constrained region.
         ''' </summary>
         ''' <remarks>VSWhidbey 544308</remarks>
-        <SecurityCritical()>
-        <SuppressUnmanagedCodeSecurity()>
         Friend NotInheritable Class LateInitSafeHandleZeroOrMinusOneIsInvalid
             Inherits SafeHandleZeroOrMinusOneIsInvalid
 
-            <SecurityCritical()>
             Friend Sub New()
                 MyBase.New(True)
             End Sub
 
-            <SecurityCritical()>
             Friend Sub InitialSetHandle(ByVal h As IntPtr)
                 Debug.Assert(MyBase.IsInvalid, "Safe handle should only be set once.")
                 MyBase.SetHandle(h)
             End Sub
 
-            <SecurityCritical()>
             Protected Overrides Function ReleaseHandle() As Boolean
                 Return NativeMethods.CloseHandle(Me.handle) <> 0
             End Function
@@ -81,8 +72,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' (using LateInitSafeHandleZeroOrMinusOneIsInvalid.InitialSetHandle) to correctly use and dispose the handle.
         ''' </remarks>
         <StructLayout(LayoutKind.Sequential)>
-        <System.Security.SecurityCritical()>
-        <System.Security.SuppressUnmanagedCodeSecurity()>
         Friend NotInheritable Class PROCESS_INFORMATION
             Public hProcess As IntPtr = IntPtr.Zero
             Public hThread As IntPtr = IntPtr.Zero
@@ -103,8 +92,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' </summary>
         ''' <remarks></remarks>
         <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)>
-        <System.Security.SecurityCritical()>
-        <System.Security.SuppressUnmanagedCodeSecurity()>
         Friend NotInheritable Class STARTUPINFO
             Implements IDisposable
 
@@ -132,13 +119,11 @@ Namespace Microsoft.VisualBasic.CompilerServices
 
             Private m_HasBeenDisposed As Boolean ' To detect redundant calls. Default initialize = False.
 
-            <SecuritySafeCritical()>
             Protected Overrides Sub Finalize()
                 Dispose(False)
             End Sub
 
             ' IDisposable
-            <SecurityCritical()>
             Private Sub Dispose(ByVal disposing As Boolean)
                 If Not m_HasBeenDisposed Then
                     If disposing Then
@@ -167,8 +152,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
             End Sub
 
             ' This code correctly implements the disposable pattern.
-            <SecuritySafeCritical()>
-            <ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)>
             Friend Sub Dispose() Implements IDisposable.Dispose
                 ' Do not change this code.  Put cleanup code in Dispose(ByVal disposing As Boolean) above.
                 Dispose(True)
index 1f9d8ddec742f3332c25defb6566e7984cfcb1fa..41b8b59d8ef0ce7e1d0a1bc1bccb76326b9339f5 100644 (file)
@@ -3,14 +3,11 @@
 ' See the LICENSE file in the project root for more information.
 
 Imports System
-Imports System.Security
 Imports System.Runtime.InteropServices
-Imports System.Runtime.Versioning
 
 Namespace Microsoft.VisualBasic.CompilerServices
 
     <ComVisible(False)>
-    <SuppressUnmanagedCodeSecurityAttribute()>
     Friend NotInheritable Class UnsafeNativeMethods
         ''' <summary>
         ''' Frees memory allocated from the local heap. i.e. frees memory allocated
@@ -19,8 +16,6 @@ Namespace Microsoft.VisualBasic.CompilerServices
         ''' <param name="LocalHandle"></param>
         ''' <returns></returns>
         ''' <remarks></remarks>
-        <SecurityCritical()>
-        <ResourceExposure(ResourceScope.None)>
         <DllImport("kernel32", ExactSpelling:=True, SetLastError:=True)>
         Friend Shared Function LocalFree(ByVal LocalHandle As IntPtr) As IntPtr
         End Function
index 4093de9dbbd7e6142c2d09bf5acbbe89eff33e56..715fb30bb98dd2bcd2b8fc8543c4e989f8264408 100644 (file)
@@ -5,7 +5,6 @@
 Imports System
 Imports System.Globalization
 Imports System.Security
-Imports System.Security.Permissions
 Imports Microsoft.VisualBasic.CompilerServices
 Imports Microsoft.VisualBasic.CompilerServices.ExceptionUtils
 Imports Microsoft.VisualBasic.CompilerServices.Utils
index 0d7f5138316aeb0c86a09e894b4d2c82b9146eca..33d8d59458029ce200aa585cc14f52ec2cfbf84b 100644 (file)
@@ -7,7 +7,6 @@ namespace Microsoft.Win32
     using System;
     using System.Diagnostics;
     using System.Security;
-    using System.Security.Permissions;
     using System.Collections;
     using System.Collections.Generic;
     using System.ComponentModel;
index ee2353042bdb625d05cf84e466fcf95e3e2b70ea..c241db1efd90cd1aaf81e3e6057f41750302a6c4 100644 (file)
@@ -1225,7 +1225,6 @@ namespace System.Data
                         view.SetIndex2("", DataViewRowState.CurrentRows, null, true);
                     }
 
-                    // avoid HostProtectionAttribute(Synchronization=true) by not calling virtual methods from inside a lock
                     view = Interlocked.CompareExchange<DataView>(ref _defaultView, view, null);
                     if (null == view)
                     {
index f0f82ce81ca0c51ea6607c194cd79cecef2890aa..6be6ec5408e87540774a12d2f2f09143e8ecfb14 100644 (file)
     <Reference Include="System.Runtime.Extensions" />
     <Reference Include="System.Runtime.InteropServices" />
     <Reference Include="System.Security.Claims" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Security.Principal" />
     <Reference Include="System.Security.Principal.Windows" />
     <Reference Include="System.Text.Encoding.CodePages" />
index 8df948344fd1c5d1947f48aac384075caf4e4eb6..8c2e06db7ae2e50b2c13c799561cf8ac7df630d9 100644 (file)
@@ -8,7 +8,6 @@ using System.Diagnostics;
 using System.Diagnostics.CodeAnalysis;
 using System.Globalization;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using System.Text;
 using SysTx = System.Transactions;
 
index 757b39153feac801b218d3a4d32660c87a20f5ff..9bd2a80043aeb70b147ce13f00eb53af327c2350 100644 (file)
     <Reference Include="System.Security.Claims" />
     <Reference Include="System.Security.Principal" />
     <Reference Include="System.Security.Principal.Windows" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Text.Encoding.CodePages" />
     <Reference Include="System.Text.Encoding.Extensions" />
     <Reference Include="System.Text.RegularExpressions" />
index 63cad1b39c5afb1b35e4a6f0d694bf4e85278e66..0f0bbeb9bf05e792b5ebe0876b15f413aaa56b14 100644 (file)
@@ -5,7 +5,6 @@
 using System;
 using System.Data.Common;
 using System.Runtime.Serialization;
-using System.Security.Permissions;
 
 namespace Microsoft.SqlServer.Server
 {
index 16ae5c634a5a126566e2a30a508471a516dd7385..6677516c0a28f6e78d3862a078937fd301e903e2 100644 (file)
@@ -10,7 +10,6 @@ using System.IO;
 using System.Globalization;
 using System.Reflection;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using System.Text;
 using System.Runtime.CompilerServices;
 using System.Data.SqlTypes;
@@ -603,4 +602,4 @@ namespace Microsoft.SqlServer.Server
 
         internal override int Size => 8;
     }
-}
\ No newline at end of file
+}
index 1232ceb6b65ffd26c3b22635aac6a0f948c4773f..2d9cff266d99b6f7e90f432cad26fd94714281c1 100644 (file)
@@ -10,7 +10,6 @@ using System.Globalization;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Runtime.Versioning;
-using System.Security.Permissions;
 using Microsoft.Win32.SafeHandles;
 using System.Buffers;
 
@@ -274,7 +273,6 @@ namespace System.Data.SqlTypes
             _m_fs.Flush();
         }
 
-        [HostProtection(ExternalThreading = true)]
         public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
         {
             if (_m_disposed)
@@ -291,7 +289,6 @@ namespace System.Data.SqlTypes
             return _m_fs.EndRead(asyncResult);
         }
 
-        [HostProtection(ExternalThreading = true)]
         public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
         {
             if (_m_disposed)
index d78eb587c4c7db122703da466371dc58b549c819..890b42a650907312ed0eb91b091e42129524dd51 100644 (file)
     <Reference Include="System.Runtime.Extensions" />
     <Reference Include="System.Runtime.InteropServices" />
     <Reference Include="System.Resources.ResourceManager" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Security.Principal.Windows" />
     <Reference Include="System.Threading" />
     <Reference Include="System.Threading.AccessControl" />
index 0e6b469004af6ad1bdc05654f1be03ce06f96e82..6c329e0b9105f6d2a19f9577313c0e0ed6bc1685 100644 (file)
@@ -10,7 +10,6 @@ using System.Globalization;
 using System.IO;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using System.Threading;
 using Microsoft.Win32;
 using Microsoft.Win32.SafeHandles;
@@ -1171,7 +1170,6 @@ namespace System.Diagnostics
             boolFlags[Flag_monitoring] = isMonitoring;
         }
 
-        [HostProtection(Synchronization = true)]
         private static void RemoveListenerComponent(EventLogInternal component, string compLogName)
         {
             lock (InternalSyncObject)
index cf79f02eb86c1684eb0a5a67a1c3392317a15baf..fed02daee00b0dfc54a4577d06f06ca1cfc4ccde 100644 (file)
@@ -13,7 +13,6 @@ using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 using System.Runtime.Versioning;
 using System.Security;
-using System.Security.Permissions;
 using System.Security.Principal;
 using System.Text;
 using System.Threading;
index 9316dd373000ab39b5af3a097275c1747d97b872..636166f9b24dc2bfb8ca71d7a9d0b5651ca9dd58 100644 (file)
@@ -2,8 +2,6 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
-using System.Security.Permissions;
-
 namespace System.Diagnostics
 {
     public class ConsoleTraceListener : TextWriterTraceListener {
index 1853a33f1359b94bb96ec08183fb227488138f1e..b9077948ebff507e1121bacd107e1086fe6005f8 100644 (file)
     <Reference Include="System.IO.FileSystem.AccessControl" />
     <Reference Include="System.Runtime" />
     <Reference Include="System.Security.AccessControl" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Security.Principal.Windows" />
   </ItemGroup>
   <ItemGroup Condition="'$(TargetGroup)' != 'netstandard'">
index ccfbc4f66b56297c6b6fb5bf942062cfee972196..609031d7d41ad2964fe4ecf0a10c7f9b07f1e43c 100644 (file)
@@ -10,7 +10,6 @@ using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Net;
 using System.Security.Principal;
-using System.Security.Permissions;
 
 using System.DirectoryServices;
 using System.Text;
index e400376e751952f436fc3cdc9d5bcfa1f7559bf8..52e6639919e8c3c1fdae8058e7826d3e1990b997 100644 (file)
@@ -10,7 +10,6 @@ using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Net;
 using System.Security.Principal;
-using System.Security.Permissions;
 using System.Collections.Specialized;
 using System.DirectoryServices;
 using System.Text;
index 182157384a10dc446cbe6d7f11af5e5ea74b74b6..e2fb76426b64c00a8296c6a097d2885a165047fb 100644 (file)
@@ -6,7 +6,6 @@ using System;
 using System.Diagnostics;
 using System.Globalization;
 using System.Security.Principal;
-using System.Security.Permissions;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Collections;
index bc80809670417750977952170320b9dcb10c67c5..d107764c519793fa5de045cdef01adebfd4bbf64 100644 (file)
@@ -6,7 +6,6 @@ using System;
 using System.Diagnostics;
 using System.Collections.Generic;
 using System.Security.Cryptography.X509Certificates;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.AccountManagement
 {
index c3aedd23f7beab7fc3e98d24c1d9f83d8462c052..2b11fbce9d50c27943bedc7b2fd847c3276484b4 100644 (file)
@@ -5,7 +5,6 @@
 using System;
 using System.Diagnostics;
 using System.Collections.Generic;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.AccountManagement
 {
index 7159814e38159ced0644273910b66974e0301d8b..45ab446f428fcc04720642048d64bd9dd3ed0295 100644 (file)
@@ -15,7 +15,6 @@ using System.Net;
 using System.Text;
 using System.Threading;
 using System.Collections;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.AccountManagement
 {
index 0edf9399bfff39ab3fd00bfa2c208cf0a777ea18..5e3cc6cf78142def4a47d713e30b28e0c9b695c5 100644 (file)
@@ -5,7 +5,6 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.AccountManagement
 {
index 73a360e72422ae39c49c0d15927ee1f61a920576..da74ea47b606061200c7d99ac828a26ea769e5f9 100644 (file)
@@ -6,7 +6,6 @@ using System;
 using System.Diagnostics;
 using System.Globalization;
 using System.Security.Principal;
-using System.Security.Permissions;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Collections;
index 88767d898136527e62fdeb7bb9a214c0de4278c6..04579ce575bdcb60f62ea646ebec659d69b3e8ba 100644 (file)
@@ -5,7 +5,6 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-using System.Security.Permissions;
 using System.Security.Principal;
 
 namespace System.DirectoryServices.AccountManagement
index 966e89669b0bc3bddf6e4057fd03ec80179a2f08..75ef0de39473d60f3e5d0c8352dc81e57580eca3 100644 (file)
@@ -5,7 +5,6 @@
 using System;
 using System.Diagnostics;
 using System.Collections.Generic;
-using System.Security.Permissions;
 using System.Security.Principal;
 
 namespace System.DirectoryServices.AccountManagement
index 73fa4bc0cd4d992b73a443227627723d83b14a07..9b82db4563545ec5bd72550805465969ab06873f 100644 (file)
@@ -9,7 +9,6 @@ using System.Runtime.Serialization;
 using System.Runtime.InteropServices;
 using System.Text;
 using System.Security.Authentication;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.AccountManagement
 {
index 7382b2dd55a85d908f469ddd093c5f85c273c5bf..f5d842496ea341101584fb3ab7e914bc93573bda 100644 (file)
@@ -13,7 +13,6 @@ namespace System.DirectoryServices.AccountManagement
     using System.Runtime.InteropServices;
     using System;
     using System.Security;
-    using System.Security.Permissions;
     using System.Text;
 
     internal class Constants
index faff0ee47a3ba8fd68520fa6d3282003e65af2ce..ac06dd515d017779815f3ad3aa24f75c59e1197d 100644 (file)
@@ -40,7 +40,6 @@
   </ItemGroup>
   <ItemGroup>
     <Reference Include="System.Security.AccessControl" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Security.Principal.Windows" />
   </ItemGroup>
   <ItemGroup Condition="'$(TargetGroup)' != 'netstandard'">
index 6ca90a24e908af0d2102b73ec37178125f977ef5..307f8712a2d266286eaeb32e4f02c828b74f4258 100644 (file)
@@ -12,7 +12,6 @@ using System.Runtime.InteropServices;
 using System.Xml;
 using System.Threading;
 using System.Security.Cryptography.X509Certificates;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.Protocols
 {
index 754b36819c8353531aed959a8a791f3fda8104f5..de66f8369da5bd99de4894c26a33e5bd713fc2b1 100644 (file)
@@ -12,7 +12,6 @@ using System.Text;
 using System.Diagnostics;
 using System.Security.Authentication;
 using System.Runtime.CompilerServices;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.Protocols
 {
index 90b9becab8e925523eb41ddce8a46137dbf238e1..9d2036ab6813790dccecf332d6eacfeb3f6578a8 100644 (file)
@@ -7,7 +7,6 @@ using System.Security.Principal;
 using System.Diagnostics;
 using System.Runtime.InteropServices;
 using System.ComponentModel;
-using System.Security.Permissions;
 using System.IO;
 
 namespace System.DirectoryServices.ActiveDirectory
index 284c7ab2cc17fc5a506c3d56fe3fbcbe2c2cde55..715a38dedc13f720a10e702d102603e6979205f9 100644 (file)
@@ -7,7 +7,6 @@ using System.ComponentModel;
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 using System.Security.Authentication;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices.ActiveDirectory
 {
index 4f71da6edf5f3141932ca7906d9eeee7fb6074b7..bfb9b106c9ef1ea2df35cf9c5cbb69f3ca189cae 100644 (file)
@@ -6,7 +6,6 @@ using System.Text;
 using System.Net;
 using System.Collections;
 using System.Security.Principal;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 using System.Diagnostics;
 using System.Globalization;
index 56127eaef01e981cf1add2a19be074bac1244650..79fbb6c2cc598095a1ee282c65f99283d67c24b6 100644 (file)
@@ -8,7 +8,6 @@ using System.DirectoryServices.Interop;
 using System.ComponentModel;
 using System.Threading;
 using System.Reflection;
-using System.Security.Permissions;
 using System.DirectoryServices.Design;
 using System.Globalization;
 using System.Net;
index 15b8dae59ac4e698d78a7f963c4b142f3c2e48fd..0ff213cf593892776ebd385bb2c0d86c282f6f1a 100644 (file)
@@ -3,7 +3,6 @@
 // See the LICENSE file in the project root for more information.
 
 using System.Net;
-using System.Security.Permissions;
 
 namespace System.DirectoryServices
 {
index 065498c3ad702074bdcdb0c99b195ae829f15791..c956acecc96290b26691c48733302e0017f586e6 100644 (file)
@@ -3,7 +3,6 @@
 // See the LICENSE file in the project root for more information.
 
 using System.Collections;
-using System.Security.Permissions;
 
 namespace System.Drawing.Design
 {
index 9c8a20b13e7e3142a3f135c2b7ed0e51b5eaacb8..99826dce59ff017038270fb52ff66fa85dafa8d7 100644 (file)
@@ -24,7 +24,6 @@
 //
 
 using System.Collections.Generic;
-using System.Security.Permissions;
 using Xunit;
 
 namespace System.Drawing.Drawing2D.Tests
index d100e2f50be126afc0efb4dc99c7124a53156dd7..d08a4d00f809e1c96f4119126987080a3f153c5c 100644 (file)
@@ -5,7 +5,6 @@ using System.Collections.Generic;
 using System.Drawing.Tests;
 using System.IO;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using Xunit;
 
 namespace System.Drawing.Text.Tests
index a4c76136132aa84d86f2e48b46bac02e26e13894..61f64f601004b5bf9d23b04d4ed1416682167ebe 100644 (file)
@@ -35,7 +35,6 @@ using System.Drawing;
 using System.Drawing.Imaging;
 using Xunit;
 using System.IO;
-using System.Security.Permissions;
 
 namespace MonoTests.System.Drawing.Imaging
 {
index 5c849c1cefd2f5efe33e11ca58d0302de9682500..192b97dae8c20487fe0c430b6951351cf456b191 100644 (file)
@@ -39,7 +39,6 @@ using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 using System.Runtime.Serialization.Formatters.Binary;
 using System.Security.Cryptography;
-using System.Security.Permissions;
 using System.Text;
 using System.Xml.Serialization;
 using Xunit;
index bc14699ca5fe213859ca7003d994b300b4f99af4..0ad321655ee9173a6caf5eacc30d8ac128cc1efb 100644 (file)
@@ -34,7 +34,6 @@ using System.Drawing.Drawing2D;
 using System.Drawing.Imaging;
 using System.IO;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using Xunit;
 
 namespace MonoTests.System.Drawing.Imaging
index db29ad78451536552feae8c73fcf1e03f581c252..2aca61097a3e6f4d2f4e22d22974f380d670513c 100644 (file)
@@ -7,7 +7,6 @@ using System.Security.Principal;
 
 namespace System.IO.Pipes
 {
-    // [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
     public sealed class PipeAccessRule : AccessRule
     {
         //
index db9a6c76bc5bd0255ebb92e78826e284af8fcc3b..0d96778e4aa6465e497665f6e0967ef2fcd0f101 100644 (file)
@@ -7,7 +7,6 @@ using System.Security.Principal;
 
 namespace System.IO.Pipes
 {
-    //[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
     public sealed class PipeAuditRule : AuditRule
     {
         public PipeAuditRule(
index 0fe4809b8512288379eb1f79da87633f43f91dce..28fea113705ffd4425d48403f9fce188d41bea83 100644 (file)
@@ -9,7 +9,6 @@ using System.Runtime.InteropServices;
 
 namespace System.IO.Pipes
 {
-    //[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
     public class PipeSecurity : NativeObjectSecurity
     {
         public PipeSecurity()
index 0777c68bef29e96c81d9ed0f6e97aac8335a5ebe..1352ac370706fa398c79dfabbfa0da0dc6afd0cf 100644 (file)
@@ -74,7 +74,6 @@
     <Reference Include="Microsoft.Win32.Primitives" />
     <Reference Include="Microsoft.Win32.Registry" />
     <Reference Include="System.CodeDom" />
-    <Reference Include="System.Security.Permissions" />
   </ItemGroup>
   <ItemGroup Condition="'$(TargetGroup)' != 'netstandard'">
     <Reference Include="System.Collections.NonGeneric" />
index 70e751d1509de558997c559caccc33e9af77e08c..a0be649b265b2ff7a35f2287a8779d833d20c18c 100644 (file)
@@ -7,7 +7,6 @@ using System.Runtime.InteropServices;
 using System.Security;
 using System.Runtime.Serialization;
 using System.Threading;
-using System.Security.Permissions;
 using System.Runtime.Versioning;
 using System.Text;
 
index 523c829b342925bbe991f33e0d6ef637487df3a4..a327f280173db21f5f5be432da2529b0bfa07678 100644 (file)
@@ -4,7 +4,6 @@
 
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
-using System.Security.Permissions;
 
 namespace System.Management
 {
index a5c60b487984e97f73702939c87116709d0f50cf..6235cccf4ebd04068335b202677bc32a676268d7 100644 (file)
@@ -9,7 +9,6 @@ using System.IO;
 using System.Reflection;
 using System.ComponentModel.Design.Serialization;
 using System.Security;
-using System.Security.Permissions;
 using Microsoft.Win32;
 
 namespace System.Management
index 68bee7ff617af875de4ed53df45fd0484bb021f6..35d0ac9a69d0f41c49f8da13377790f199ca9181 100644 (file)
@@ -6,7 +6,6 @@ namespace System.Runtime.Serialization
 {
     using System;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.CompilerServices;
 
     internal sealed class SurrogateDataContract : DataContract
index fc12c7160272a8f5cb7b87e21acd681b6a9e4aea..2750203b720cba7683a4acb61d9a6b48b317c1b0 100644 (file)
@@ -72,6 +72,5 @@
   <ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp' OR '$(TargetGroup)' == 'uap'">
     <Reference Include="System.Collections" />
     <Reference Include="System.Diagnostics.Debug" />
-    <Reference Include="System.Security.Permissions" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 2761f3994475b433fca999095a8eea77eedde829..ef379689f1dea35b3225085de6fc4b84510e382d 100644 (file)
@@ -92,7 +92,6 @@
     <Reference Include="System.Runtime.Extensions" />
     <Reference Include="System.Runtime.InteropServices" />
     <Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
-    <Reference Include="System.Security.Permissions" />
     <Reference Include="System.Security.Principal.Windows" />
     <Reference Include="System.Threading" />
     <Reference Include="System.Threading.AccessControl" />
index bc30c0554c8fc37b5664dbb966738f2f09dd9a20..863bec4aebf3798cc705c880e786b88022bf2dc9 100644 (file)
@@ -7,7 +7,6 @@ using System.Runtime.Caching.Configuration;
 using System.Runtime.Caching.Hosting;
 using System.Diagnostics;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 
 namespace System.Runtime.Caching
index c13d33239625be2fe506c58a3bfb60230f7f9de7..6b95ddd15a75700a339804db45c6105c7265a618 100644 (file)
@@ -15,7 +15,6 @@ using System.Reflection;
 using System.Runtime.ConstrainedExecution;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 using System.Runtime.Versioning;
 
index 4fc0740dbb6c12769ed836df5173ff6c06530d46..d6d1a2b0b025fb0ac043991a45e8f5a903159b04 100644 (file)
@@ -8,7 +8,6 @@ using System.Runtime.Caching.Resources;
 using System.Collections;
 using System.IO;
 using System.Security;
-using System.Security.Permissions;
 
 namespace System.Runtime.Caching
 {
index fdcd29e828c51fc6e005f2e7e5871da0729a961f..b0f3bf0be1235ddff8df82bc6be21e58bf7af03f 100644 (file)
@@ -11,7 +11,6 @@ using System.Diagnostics.CodeAnalysis;
 using System.Runtime.Caching.Resources;
 using System.Globalization;
 using System.Security;
-using System.Security.Permissions;
 using System.Text;
 using System.Threading;
 
index 0ae4064915f1f545334769266f621b2ee1177819..9188fe2018d32160bc4d2a3c2c00ee06c967deab 100644 (file)
@@ -12,7 +12,6 @@ using System.Collections.ObjectModel;
 using System.Configuration;
 using System.Diagnostics.CodeAnalysis;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 
 namespace System.Runtime.Caching
index 25370633559787cc15217a551515725a0e83e2ca..914c8094c4807a6055b1fe91e0b878ad46c3d6e6 100644 (file)
@@ -8,7 +8,6 @@ using System.Collections.Specialized;
 using System.Threading;
 using System.Diagnostics;
 using System.Security;
-using System.Security.Permissions;
 using System.Diagnostics.CodeAnalysis;
 
 namespace System.Runtime.Caching
index 4b8dd7f23c58c34add1854a370c60c016d5f6187..3725285eaa226dd819c4640f10b64879d7fc3576 100644 (file)
@@ -6,7 +6,6 @@ using System;
 using System.Globalization;
 using System.Reflection;
 using System.Security;
-using System.Security.Permissions;
 using System.Diagnostics.CodeAnalysis;
 using System.Runtime.InteropServices;
 
index 97eea9876aeebd87d505f56dc023deafbdd8c7f8..8e86c8b473ebf85a465b3689ca4ead965c8b3fe6 100644 (file)
@@ -9,7 +9,6 @@ using System.Diagnostics;
 using System.Globalization;
 using System.IO;
 using System.Security.Cryptography.X509Certificates;
-using System.Security.Permissions;
 using System.Text;
 using System.Threading;
 using System.Xml;
index b9f93ec432dbfb4ff9f4d399a70d322e7f16f562..ebc2bf44c42b70ecc9a9bcf4847ff31315706454 100644 (file)
@@ -8,7 +8,6 @@ using System.Diagnostics;
 using System.Globalization;
 using System.IO;
 using System.Security.Cryptography.X509Certificates;
-using System.Security.Permissions;
 using System.Text;
 using System.Threading;
 using System.Xml;
index 46d835e650f921aaeb61dfd87f8ffdde5e526c58..aec094bad37aa355a3f612219d4c0b7b3a97f510 100644 (file)
@@ -12,7 +12,6 @@ using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
-using System.Security.Permissions;
 using System.Xml;
 using Microsoft.Win32;
 
index d5f2a9283bd23cb3ad30fc33ae23e1887c64abad..b4e896c3bffc8b8b6632a27cb1bdaee66757e70b 100644 (file)
@@ -11,7 +11,6 @@ using System.IO;
 using System.Security;
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
-using System.Security.Permissions;
 using System.Text;
 using System.Threading;
 using System.Xml;