From 3b6600cbefe6b96706c5315ce184accbb4501f3b Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 23 Sep 2020 22:26:31 -0400 Subject: [PATCH] Add IDE warnings to code analysis ruleset (#42566) - Add all IDEXXXX warnings to ruleset, but as hidden for now - Enable IDE0073: file header mismatch --- .editorconfig | 6 +- eng/Analyzers.props | 1 + eng/CodeAnalysis.ruleset | 90 +++++++++++++++++++ .../Runtime/InteropServices/ComActivator.cs | 2 +- .../ResourceUpdater.cs | 4 +- .../src/GenerateThisAssemblyCs.targets | 3 + .../src/System/Drawing/Bitmap.Unix.cs | 1 + .../System/Drawing/BufferedGraphics.Unix.cs | 1 + .../Drawing/BufferedGraphicsContext.Unix.cs | 1 + .../Drawing/BufferedGraphicsManager.Unix.cs | 1 + .../Drawing/Drawing2D/GraphicsPath.Unix.cs | 1 + .../src/System/Drawing/Font.Unix.cs | 1 + .../Drawing/GdiPlusStreamHelper.Unix.cs | 1 + .../src/System/Drawing/Graphics.Unix.cs | 1 + .../src/System/Drawing/Icon.Unix.cs | 1 + .../src/System/Drawing/Image.Unix.cs | 1 + .../src/System/Drawing/ImageAnimator.Unix.cs | 1 + .../System/Drawing/Imaging/BitmapData.Unix.cs | 1 + .../System/Drawing/Imaging/MetaHeader.Unix.cs | 1 + .../System/Drawing/Imaging/Metafile.Unix.cs | 1 + .../Drawing/Imaging/MetafileHeader.Unix.cs | 1 + .../src/System/Drawing/MarshallingHelpers.cs | 1 + .../src/System/Drawing/NativeStructs.Unix.cs | 1 + .../Drawing/Printing/PageSettings.Unix.cs | 1 + .../Printing/PreviewPrintController.Unix.cs | 1 + .../Drawing/Printing/PrintController.Unix.cs | 1 + .../Drawing/Printing/PrintDocument.Unix.cs | 1 + .../Drawing/Printing/PrintEventArgs.Unix.cs | 1 + .../Printing/PrintPageEventArgs.Unix.cs | 1 + .../Drawing/Printing/PrinterSettings.Unix.cs | 1 + .../Drawing/Printing/PrintingServices.Unix.cs | 1 + .../Printing/StandardPrintController.Unix.cs | 1 + .../System/Drawing/SRDescriptionAttribute.cs | 1 + .../src/System/Drawing/SystemFonts.Unix.cs | 1 + .../src/System/Drawing/SystemIcons.Unix.cs | 1 + .../Drawing/ToolboxBitmapAttribute.Unix.cs | 1 + .../src/System/Drawing/macFunctions.cs | 1 + .../FileSystemEnumerableFactory.cs | 1 - .../src/System/Net/Http/WinHttpHandler.cs | 2 +- .../AuthenticationHelper.NtAuth.cs | 2 +- .../src/System/Net/Managed/ChunkStream.cs | 1 + .../System/Net/Managed/ChunkedInputStream.cs | 1 + .../src/System/Net/Managed/HttpConnection.cs | 1 + .../Net/Managed/HttpEndPointListener.cs | 1 + .../System/Net/Managed/HttpEndPointManager.cs | 1 + .../Managed/HttpListenerRequest.Managed.cs | 1 + .../Managed/HttpListenerResponse.Managed.cs | 1 + .../Net/Managed/HttpRequestStream.Managed.cs | 1 + .../Net/Managed/HttpResponseStream.Managed.cs | 1 + .../Net/Managed/HttpStreamAsyncResult.cs | 1 + .../Managed/ListenerAsyncResult.Managed.cs | 1 + .../src/System/Net/Managed/ListenerPrefix.cs | 1 + .../WebSocketHttpListenerDuplexStream.cs | 2 +- .../System/Reflection/Emit/TypeNameBuilder.cs | 6 +- .../src/System/Text/EncodingData.cs | 3 +- .../Threading/AbandonedMutexException.cs | 5 -- .../src/Mono/MonoPInvokeCallbackAttribute.cs | 3 + .../src/Mono/RuntimeStructs.cs | 1 + .../src/Mono/SafeGPtrArrayHandle.cs | 1 + .../src/Mono/SafeStringMarshal.cs | 1 + .../src/System/Delegate.Mono.cs | 1 + .../src/System/IO/MonoIOError.cs | 1 + .../src/System/Reflection/CustomAttribute.cs | 1 + .../System/Reflection/CustomAttributeData.cs | 1 + .../Reflection/Emit/AssemblyBuilder.Mono.cs | 1 + .../Emit/ConstructorBuilder.Mono.cs | 1 + .../Emit/ConstructorOnTypeBuilderInst.cs | 1 + .../Emit/CustomAttributeBuilder.Mono.cs | 1 + .../Reflection/Emit/DerivedTypes.Mono.cs | 1 + .../System/Reflection/Emit/DynamicILInfo.cs | 1 + .../System/Reflection/Emit/DynamicMethod.cs | 1 + .../Emit/DynamicMethod.notsupported.cs | 1 + .../Reflection/Emit/EnumBuilder.Mono.cs | 1 + .../Reflection/Emit/EventBuilder.Mono.cs | 1 + .../Reflection/Emit/EventOnTypeBuilderInst.cs | 1 + .../Reflection/Emit/FieldBuilder.Mono.cs | 1 + .../Reflection/Emit/FieldOnTypeBuilderInst.cs | 1 + .../Emit/GenericTypeParameterBuilder.cs | 3 +- .../Reflection/Emit/ILGenerator.Mono.cs | 1 + .../Reflection/Emit/LocalBuilder.Mono.cs | 1 + .../Reflection/Emit/MethodBuilder.Mono.cs | 1 + .../Emit/MethodOnTypeBuilderInst.cs | 1 + .../Reflection/Emit/ModuleBuilder.Mono.cs | 1 + .../System/Reflection/Emit/MonoArrayMethod.cs | 1 + .../Reflection/Emit/ParameterBuilder.Mono.cs | 1 + .../Reflection/Emit/PropertyBuilder.Mono.cs | 1 + .../Emit/PropertyOnTypeBuilderInst.cs | 1 + .../System/Reflection/Emit/SignatureHelper.cs | 1 + .../Reflection/Emit/TypeBuilder.Mono.cs | 1 + .../Emit/TypeBuilderInstantiation.cs | 1 + .../Reflection/Emit/UnmanagedMarshal.cs | 1 + .../src/System/Reflection/RuntimeAssembly.cs | 1 + .../src/System/Reflection/RuntimeEventInfo.cs | 1 + .../src/System/Reflection/RuntimeFieldInfo.cs | 1 + .../System/Reflection/RuntimeMethodInfo.cs | 1 + .../src/System/Reflection/RuntimeModule.cs | 1 + .../System/Reflection/RuntimePropertyInfo.cs | 1 + .../src/System/RuntimeTypeHandle.cs | 1 + .../src/System/TypeIdentifier.cs | 1 + .../src/System/TypeSpec.cs | 1 + .../netcore/sample/wasm/browser/Program.cs | 1 - .../netcore/sample/wasm/console/Program.cs | 4 +- .../wasm/debugger/BrowserDebugHost/Startup.cs | 2 +- .../BrowserDebugProxy/DevToolsHelper.cs | 1 - .../debugger/BrowserDebugProxy/MonoProxy.cs | 4 +- .../WasmAppBuilder/PInvokeTableGenerator.cs | 1 - .../WasmAppBuilder/WasmAppBuilder.cs | 1 - 107 files changed, 203 insertions(+), 29 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9d03bd30636c9..29553d08aa701 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,6 +15,10 @@ trim_trailing_whitespace = true [project.json] indent_size = 2 +# Generated code +[*{_AssemblyInfo.cs,.notsupported.cs}] +generated_code = true + # C# files [*.cs] # New line preferences @@ -158,7 +162,7 @@ dotnet_code_quality.ca1802.api_surface = private, internal dotnet_code_quality.ca2208.api_surface = public # License header -file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.\n +file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license. # C++ Files [*.{cpp,h,in}] diff --git a/eng/Analyzers.props b/eng/Analyzers.props index ffc527c7fce88..921c6ae92d5ae 100644 --- a/eng/Analyzers.props +++ b/eng/Analyzers.props @@ -7,6 +7,7 @@ + diff --git a/eng/CodeAnalysis.ruleset b/eng/CodeAnalysis.ruleset index bf63f11bb05a1..217abf54b3a18 100644 --- a/eng/CodeAnalysis.ruleset +++ b/eng/CodeAnalysis.ruleset @@ -379,6 +379,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs b/src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs index c41d4dd966169..3a88bad3b1d8e 100644 --- a/src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs +++ b/src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs @@ -219,7 +219,7 @@ public static void ClassRegistrationScenarioForType(ComActivationContext cxt, bo if (methParams[0].ParameterType == typeof(string)) { // We are dealing with the string overload of the function - provide the registry key - see comhost.dll implementation - objs[0] = $"HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\{cxt.ClassId.ToString("B")}"; + objs[0] = $"HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\{cxt.ClassId:B}"; } else { diff --git a/src/installer/managed/Microsoft.NET.HostModel/ResourceUpdater.cs b/src/installer/managed/Microsoft.NET.HostModel/ResourceUpdater.cs index 04b6b8a176d45..9746b40fe7111 100644 --- a/src/installer/managed/Microsoft.NET.HostModel/ResourceUpdater.cs +++ b/src/installer/managed/Microsoft.NET.HostModel/ResourceUpdater.cs @@ -1,5 +1,5 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; diff --git a/src/libraries/Microsoft.XmlSerializer.Generator/src/GenerateThisAssemblyCs.targets b/src/libraries/Microsoft.XmlSerializer.Generator/src/GenerateThisAssemblyCs.targets index aa9aabd0aec46..3bab4cfe0b8d3 100644 --- a/src/libraries/Microsoft.XmlSerializer.Generator/src/GenerateThisAssemblyCs.targets +++ b/src/libraries/Microsoft.XmlSerializer.Generator/src/GenerateThisAssemblyCs.targets @@ -7,6 +7,9 @@ BeforeTargets="CoreCompile"> +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System%3B namespace Microsoft.XmlSerializer.Generator { diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Bitmap.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Bitmap.Unix.cs index 645e28d31df3f..7142f89ae95c0 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Bitmap.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Bitmap.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Bitmap.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Unix.cs index 0dfd7c2e443c5..251fd61538236 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsContext.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsContext.Unix.cs index e3c8d1000b5ee..f9c86b948d674 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsContext.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsContext.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsManager.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsManager.Unix.cs index e8aca1d79b6af..e0575dd48ac88 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsManager.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsManager.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPath.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPath.Unix.cs index 13799f112308f..42f91976b70b5 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPath.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPath.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Drawing2D.GraphicsPath.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Font.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Font.Unix.cs index 7bd7e7d0e4929..9ccb2c51c12d5 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Font.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Font.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Fonts.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/GdiPlusStreamHelper.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/GdiPlusStreamHelper.Unix.cs index ccb8a84376ce2..fb55982f8068d 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/GdiPlusStreamHelper.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/GdiPlusStreamHelper.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.GdiPlusStreamHelper.cs // - Originally in System.Drawing.gdipFunctions.cs diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Unix.cs index 5527eba2bc88d..271da443ce082 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Graphics.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Icon.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Icon.Unix.cs index 48d7e86210ab2..4cb66531a2d2b 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Icon.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Icon.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Icon.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Image.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Image.Unix.cs index d90d4915c0044..0385b18eb5ece 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Image.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Image.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Image.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.Unix.cs index 4ecbc1036662d..157bf76a70700 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.ImageAnimator.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/BitmapData.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/BitmapData.Unix.cs index 0291d0e41b632..6712074587dc1 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/BitmapData.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/BitmapData.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Imaging.BitmapData.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetaHeader.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetaHeader.Unix.cs index 2cffc5c3c9ce3..c44caf6e03f82 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetaHeader.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetaHeader.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Imaging.MetaHeader.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/Metafile.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/Metafile.Unix.cs index 18119d940d923..53aaca69fd4be 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/Metafile.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/Metafile.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Imaging.Metafile.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeader.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeader.Unix.cs index 24d8f4e8fd796..2d5c1fb6800f2 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeader.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeader.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.Imaging.MetafileHeader.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/MarshallingHelpers.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/MarshallingHelpers.cs index be5e57e12aaf4..f95875159844c 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/MarshallingHelpers.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/MarshallingHelpers.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Authors: // Alexandre Pigolkine (pigolkine@gmx.de) diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/NativeStructs.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/NativeStructs.Unix.cs index f57c88fd2d0a7..0b1822199e0ee 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/NativeStructs.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/NativeStructs.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.NativeStructs.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.Unix.cs index 4ea65435c7095..a7e8c1dbdbcf6 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PageSettings.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PreviewPrintController.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PreviewPrintController.Unix.cs index 40172042775bd..d8d59bf3a9adc 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PreviewPrintController.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PreviewPrintController.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PreviewPrintController.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintController.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintController.Unix.cs index 371e703070063..cab9cb86a8f90 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintController.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintController.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PrintController.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintDocument.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintDocument.Unix.cs index 1ea71163f7825..25ea2116850df 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintDocument.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintDocument.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PrintDocument.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintEventArgs.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintEventArgs.Unix.cs index 707c5f6902933..4fca5d1418aa6 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintEventArgs.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintEventArgs.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PrintEventArgs.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintPageEventArgs.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintPageEventArgs.Unix.cs index 8b7491076ac8e..969ee8a474a03 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintPageEventArgs.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintPageEventArgs.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PrintPageEventArgs.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Unix.cs index c6ddcee02a5fb..d3e567777cde1 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.PrinterSettings.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs index 18cb49f09f119..8d688f312bc5b 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2005 Novell, Inc. http://www.novell.com // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/StandardPrintController.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/StandardPrintController.Unix.cs index b7fabb423195d..625429566e485 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/StandardPrintController.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Printing/StandardPrintController.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.StandardPrintController.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/SRDescriptionAttribute.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/SRDescriptionAttribute.cs index 6bac94fbfa58d..00d110b34f3a5 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/SRDescriptionAttribute.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/SRDescriptionAttribute.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.SRDescriptionAttribute.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/SystemFonts.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/SystemFonts.Unix.cs index 6cb2a933a5d53..73f6308325d52 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/SystemFonts.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/SystemFonts.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2005, 2007 Novell, Inc (http://www.novell.com) // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/SystemIcons.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/SystemIcons.Unix.cs index 2daf4773f2624..4ddc93c2c9d95 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/SystemIcons.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/SystemIcons.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.SystemIcons.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/ToolboxBitmapAttribute.Unix.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/ToolboxBitmapAttribute.Unix.cs index d56723f4789ed..d3815a01836c2 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/ToolboxBitmapAttribute.Unix.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/ToolboxBitmapAttribute.Unix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.ToolboxBitmapAttribute.cs // diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/macFunctions.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/macFunctions.cs index 2c83ad34ce7e1..52ce76b9ee2d5 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/macFunctions.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/macFunctions.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Drawing.carbonFunctions.cs // diff --git a/src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerableFactory.cs b/src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerableFactory.cs index c0a66f50014c1..378d037bb0fd2 100644 --- a/src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerableFactory.cs +++ b/src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerableFactory.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file ref the project root for more information. using System; using System.Collections.Generic; diff --git a/src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpHandler.cs b/src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpHandler.cs index 40cd1d553723a..b8d859e615b84 100644 --- a/src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpHandler.cs +++ b/src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpHandler.cs @@ -916,7 +916,7 @@ private async Task StartRequestAsync(WinHttpRequestState state) (responseMessage.StatusCode >= HttpStatusCode.RedirectKeepVerb && responseMessage.StatusCode <= (HttpStatusCode)308)) && state.RequestMessage.RequestUri.Scheme == Uri.UriSchemeHttps && responseMessage.Headers.Location?.Scheme == Uri.UriSchemeHttp) { - NetEventSource.Error(this, $"Insecure https to http redirect from {state.RequestMessage.RequestUri.ToString()} to {responseMessage.Headers.Location.ToString()} blocked."); + NetEventSource.Error(this, $"Insecure https to http redirect from {state.RequestMessage.RequestUri} to {responseMessage.Headers.Location} blocked."); } } catch (Exception ex) diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.cs index a7c4db48551e4..2ade557ce3329 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.cs @@ -79,7 +79,7 @@ private static async Task SendWithNtAuthAsync(HttpRequestMe if (NetEventSource.Log.IsEnabled()) { - NetEventSource.Info(connection, $"Authentication: {challenge.AuthenticationType}, Uri: {authUri.AbsoluteUri.ToString()}"); + NetEventSource.Info(connection, $"Authentication: {challenge.AuthenticationType}, Uri: {authUri.AbsoluteUri}"); } // Calculate SPN (Service Principal Name) using the host name of the request. diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkStream.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkStream.cs index b5402428c359a..9590c689a2be4 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkStream.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkStream.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.ChunkStream // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkedInputStream.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkedInputStream.cs index 6eb6f5d7b883d..3b8e200302db5 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkedInputStream.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkedInputStream.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.ChunkedInputStream // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpConnection.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpConnection.cs index 2e7e7aef28c60..2ea835a7edd6b 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpConnection.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpConnection.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.HttpConnection // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointListener.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointListener.cs index d7804240fbd26..f385c79a651a2 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointListener.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointListener.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.HttpEndPointListener // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointManager.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointManager.cs index cf3dd38ae5c76..a0d62b816ec22 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointManager.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointManager.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.HttpEndPointManager // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerRequest.Managed.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerRequest.Managed.cs index 51f91329b602d..a29021d572f65 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerRequest.Managed.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerRequest.Managed.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.HttpListenerRequest // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerResponse.Managed.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerResponse.Managed.cs index 5f328cc53435d..4de98bf987c45 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerResponse.Managed.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpListenerResponse.Managed.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.HttpListenerResponse // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpRequestStream.Managed.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpRequestStream.Managed.cs index 8a9acf3e196de..bdfb7f3f8c869 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpRequestStream.Managed.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpRequestStream.Managed.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.RequestStream // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpResponseStream.Managed.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpResponseStream.Managed.cs index 769a51f8e3f2a..b084166107dfe 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpResponseStream.Managed.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpResponseStream.Managed.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.ResponseStream // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpStreamAsyncResult.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpStreamAsyncResult.cs index a92059b537394..349fb288a2825 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpStreamAsyncResult.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpStreamAsyncResult.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.HttpStreamAsyncResult // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerAsyncResult.Managed.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerAsyncResult.Managed.cs index 605a26fce8af9..d5c2f56cd1aa0 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerAsyncResult.Managed.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerAsyncResult.Managed.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.ListenerAsyncResult // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerPrefix.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerPrefix.cs index 576e345047b53..172877a401978 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerPrefix.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ListenerPrefix.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Net.ListenerPrefix // diff --git a/src/libraries/System.Net.HttpListener/src/System/Net/Windows/WebSockets/WebSocketHttpListenerDuplexStream.cs b/src/libraries/System.Net.HttpListener/src/System/Net/Windows/WebSockets/WebSocketHttpListenerDuplexStream.cs index d9733f945e577..1a07f99cb8686 100644 --- a/src/libraries/System.Net.HttpListener/src/System/Net/Windows/WebSockets/WebSocketHttpListenerDuplexStream.cs +++ b/src/libraries/System.Net.HttpListener/src/System/Net/Windows/WebSockets/WebSocketHttpListenerDuplexStream.cs @@ -1077,7 +1077,7 @@ internal void FinishOperationFailure(Exception exception, bool syncCompletion) if (NetEventSource.Log.IsEnabled()) { string methodName = _completedOperation == HttpListenerAsyncOperation.Receive ? nameof(ReadAsyncFast) : nameof(WriteAsyncFast); - NetEventSource.Error(_currentStream, $"{methodName} {exception.ToString()}"); + NetEventSource.Error(_currentStream, $"{methodName} {exception}"); } Complete(); diff --git a/src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeNameBuilder.cs b/src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeNameBuilder.cs index 604f9096b1853..569bd36754d39 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeNameBuilder.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeNameBuilder.cs @@ -1,8 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// This TypeNameBuilder is ported from CoreCLR's original. -// It replaces the C++ bits of the implementation with a faithful C# port. + +// This TypeNameBuilder is ported from CoreCLR's original. +// It replaces the C++ bits of the implementation with a faithful C# port. using System.Collections.Generic; using System.Collections; diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/EncodingData.cs b/src/libraries/System.Private.CoreLib/src/System/Text/EncodingData.cs index 54936cd1882bc..992891ff08836 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/EncodingData.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/EncodingData.cs @@ -1,9 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// + // THIS IS AUTOGENERATED FILE CREATED BY // https://github.com/dotnet/buildtools/blob/6736870b84e06b75e7df32bb84d442db1b2afa10/src/Microsoft.DotNet.Build.Tasks/PackageFiles/encoding.targets -// namespace System.Text { diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/AbandonedMutexException.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/AbandonedMutexException.cs index b7c8c2433c347..50e6641a043ef 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/AbandonedMutexException.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/AbandonedMutexException.cs @@ -1,10 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// AbandonedMutexException -// Thrown when a wait completes because one or more mutexes was abandoned. -// AbandonedMutexs indicate serious error in user code or machine state. -//////////////////////////////////////////////////////////////////////////////// using System.Runtime.Serialization; diff --git a/src/mono/netcore/System.Private.CoreLib/src/Mono/MonoPInvokeCallbackAttribute.cs b/src/mono/netcore/System.Private.CoreLib/src/Mono/MonoPInvokeCallbackAttribute.cs index dbdc8fdead841..30c03904489f3 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/Mono/MonoPInvokeCallbackAttribute.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/Mono/MonoPInvokeCallbackAttribute.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; namespace Mono diff --git a/src/mono/netcore/System.Private.CoreLib/src/Mono/RuntimeStructs.cs b/src/mono/netcore/System.Private.CoreLib/src/Mono/RuntimeStructs.cs index 1421987e2e79e..e15c1db9a313f 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/Mono/RuntimeStructs.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/Mono/RuntimeStructs.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Mono runtime native structs surfaced to managed code. // diff --git a/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeGPtrArrayHandle.cs b/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeGPtrArrayHandle.cs index 7053ecbc6f8dd..855fc854b42d5 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeGPtrArrayHandle.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeGPtrArrayHandle.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Safe handle class for Mono.RuntimeGPtrArrayHandle // diff --git a/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeStringMarshal.cs b/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeStringMarshal.cs index c07d0aa97ff50..76965c701b398 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeStringMarshal.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/Mono/SafeStringMarshal.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Safe wrapper for a string and its UTF8 encoding // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Delegate.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Delegate.Mono.cs index 1b949ae3b4247..b9589b49f9bd9 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Delegate.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Delegate.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Authors: // Miguel de Icaza (miguel@ximian.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/IO/MonoIOError.cs b/src/mono/netcore/System.Private.CoreLib/src/System/IO/MonoIOError.cs index 5e62d63d11baf..c34a03e817e34 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/IO/MonoIOError.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/IO/MonoIOError.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.IO.MonoIOError.cs: Win32 error codes. Yuck. // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs index 1c1048ffd445b..0f12e9cea4773 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // (c) 2002,2003 Ximian, Inc. (http://www.ximian.com) // Copyright (C) 2004 Novell, Inc (http://www.novell.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttributeData.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttributeData.cs index cf3c5612a814d..ec376ae88b687 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttributeData.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttributeData.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Author: // Zoltan Varga (vargaz@gmail.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/AssemblyBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/AssemblyBuilder.Mono.cs index 845968fc6c0cf..d0433ed0bbc66 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/AssemblyBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/AssemblyBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/AssemblyBuilder.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorBuilder.Mono.cs index a40a5408f3744..543fedda6cba9 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit.ConstructorBuilder.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorOnTypeBuilderInst.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorOnTypeBuilderInst.cs index e370e8ac858bf..860a7b1f90686 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorOnTypeBuilderInst.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorOnTypeBuilderInst.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/CustomAttributeBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/CustomAttributeBuilder.Mono.cs index 6cca028dde6d8..c7834c104bd04 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/CustomAttributeBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/CustomAttributeBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DerivedTypes.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DerivedTypes.Mono.cs index 9c9130f1f52fc..707cf5274ead6 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DerivedTypes.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DerivedTypes.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit.DerivedTypes.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicILInfo.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicILInfo.cs index 90af1f8a6838c..e01a058323590 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicILInfo.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicILInfo.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/DynamicILInfo.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.cs index 5dd2763499283..4c84b6c4f985b 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit.DynamicMethod.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.notsupported.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.notsupported.cs index dac86f2c2bf01..e74c5397065bd 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.notsupported.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.notsupported.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // DynamicMethod.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EnumBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EnumBuilder.Mono.cs index 193643300e8e8..82967581ec450 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EnumBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EnumBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventBuilder.Mono.cs index 983bcc13590f2..36edd1601f3ce 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventOnTypeBuilderInst.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventOnTypeBuilderInst.cs index d9f49acad0fa1..65737484355ac 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventOnTypeBuilderInst.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/EventOnTypeBuilderInst.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/EventOnTypeBuilderInst.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldBuilder.Mono.cs index 928c05429bfa0..94645b40a2ec6 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInst.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInst.cs index 1a894f2deb092..f5a2050bba8cc 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInst.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInst.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/FieldOnTypeBuilderInst.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/GenericTypeParameterBuilder.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/GenericTypeParameterBuilder.cs index f6c73e84d7fee..c9109b0cee008 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/GenericTypeParameterBuilder.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/GenericTypeParameterBuilder.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// -// System.Reflection.Emit.GenericTypeParameterBuilder + // // Martin Baulig (martin@ximian.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ILGenerator.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ILGenerator.Mono.cs index a07f487da3563..55d20dff97839 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ILGenerator.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ILGenerator.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/LocalBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/LocalBuilder.Mono.cs index 788eb7f358f58..6d4a249f538e6 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/LocalBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/LocalBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodBuilder.Mono.cs index c0fc5d81917f7..6f6968fc4a594 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/MethodBuilder.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInst.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInst.cs index 47fbae4397124..50c9711ec306c 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInst.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInst.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/MethodOnTypeBuilderInst.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ModuleBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ModuleBuilder.Mono.cs index 42deaa812201a..9a4333b973d87 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ModuleBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ModuleBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MonoArrayMethod.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MonoArrayMethod.cs index ddb56916dd1c1..0d51eeeb8cd26 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MonoArrayMethod.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MonoArrayMethod.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection/MonoMethod.cs // The class used to represent methods from the mono runtime. diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ParameterBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ParameterBuilder.Mono.cs index 68f9eef5b5791..c327f73a778fa 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ParameterBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/ParameterBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyBuilder.Mono.cs index a645a4d89759c..082900fa8cee4 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyOnTypeBuilderInst.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyOnTypeBuilderInst.cs index 067fff0c48876..a3ad727d43472 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyOnTypeBuilderInst.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/PropertyOnTypeBuilderInst.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit/PropertyOnTypeBuilderInst.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/SignatureHelper.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/SignatureHelper.cs index 1347517a784b2..0cdb3884729f9 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/SignatureHelper.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/SignatureHelper.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.Mono.cs index 92c8f51546253..86141ae32e378 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.Mono.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit.TypeBuilder.cs // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs index 9cb1b68d48fdc..a6a48c031a21a 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Reflection.Emit.TypeBuilderInstantiation // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/UnmanagedMarshal.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/UnmanagedMarshal.cs index fd1343f4eca3c..10e6598b1430c 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/UnmanagedMarshal.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/UnmanagedMarshal.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs index 9c51c97925271..f9434d7d7e4ed 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2010 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeEventInfo.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeEventInfo.cs index e6552706916b1..2c7fbda9e8ddf 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeEventInfo.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeEventInfo.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // (C) 2001 Ximian, Inc. http://www.ximian.com // Copyright (C) 2004, 2009 Novell, Inc (http://www.novell.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeFieldInfo.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeFieldInfo.cs index 5056d832181ee..dfa028faaaebe 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeFieldInfo.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeFieldInfo.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs index af61aab2ee986..8176663873b35 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // (C) 2001 Ximian, Inc. http://www.ximian.com // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeModule.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeModule.cs index bc2b062df8d72..ef8f6554be707 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeModule.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeModule.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2010 Novell, Inc (http://www.novell.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimePropertyInfo.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimePropertyInfo.cs index eaf01b3c5c787..0967b1e497880 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimePropertyInfo.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimePropertyInfo.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // (C) 2001 Ximian, Inc. http://www.ximian.com // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs b/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs index df4809fa7dc3c..dc1eaef95e6f9 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Authors: // Miguel de Icaza (miguel@ximian.com) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/TypeIdentifier.cs b/src/mono/netcore/System.Private.CoreLib/src/System/TypeIdentifier.cs index e54fecd7df3c8..a2560dd06cfb1 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/TypeIdentifier.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/TypeIdentifier.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // Copyright (C) 2015 Xamarin, Inc (http://www.xamarin.com) // diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/TypeSpec.cs b/src/mono/netcore/System.Private.CoreLib/src/System/TypeSpec.cs index 18e58aff0766f..f78b4c208d656 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/TypeSpec.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/TypeSpec.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + // // System.Type.cs // diff --git a/src/mono/netcore/sample/wasm/browser/Program.cs b/src/mono/netcore/sample/wasm/browser/Program.cs index 1cf44433f6d19..743f481896fcb 100644 --- a/src/mono/netcore/sample/wasm/browser/Program.cs +++ b/src/mono/netcore/sample/wasm/browser/Program.cs @@ -1,4 +1,3 @@ -// -*- indent-tabs-mode: nil -*- // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. diff --git a/src/mono/netcore/sample/wasm/console/Program.cs b/src/mono/netcore/sample/wasm/console/Program.cs index b7771e9a5357f..98cade6e29cb3 100644 --- a/src/mono/netcore/sample/wasm/console/Program.cs +++ b/src/mono/netcore/sample/wasm/console/Program.cs @@ -1,4 +1,3 @@ -// -*- indent-tabs-mode: nil -*- // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. @@ -6,7 +5,8 @@ public class Test { - public static void Main (string[] args) { + public static void Main (string[] args) + { Console.WriteLine ("Hello, World!"); } } diff --git a/src/mono/wasm/debugger/BrowserDebugHost/Startup.cs b/src/mono/wasm/debugger/BrowserDebugHost/Startup.cs index 70ce4553f6a8e..0a28e88096272 100644 --- a/src/mono/wasm/debugger/BrowserDebugHost/Startup.cs +++ b/src/mono/wasm/debugger/BrowserDebugHost/Startup.cs @@ -150,7 +150,7 @@ async Task ConnectProxy(HttpContext context) return; } - var endpoint = new Uri($"ws://{devToolsHost.Authority}{context.Request.Path.ToString()}"); + var endpoint = new Uri($"ws://{devToolsHost.Authority}{context.Request.Path}"); try { using ILoggerFactory loggerFactory = LoggerFactory.Create( diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs b/src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs index ece6305561f9f..3b1ca115accfc 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs @@ -14,7 +14,6 @@ namespace Microsoft.WebAssembly.Diagnostics { - public struct SessionId { public readonly string sessionId; diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs index c261b15e9e608..b71b3389aa145 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs @@ -586,7 +586,7 @@ private async Task OnPause(SessionId sessionId, JObject args, Cancellation } catch (Exception e) { - Log("info", $"Unable to find il offset: {il_pos} in method token: {method_token} assembly name: {assembly_name} exception: {e.ToString()}"); + Log("info", $"Unable to find il offset: {il_pos} in method token: {method_token} assembly name: {assembly_name} exception: {e}"); continue; } } @@ -739,7 +739,7 @@ private async Task LoadSymbolsOnDemand(AssemblyInfo asm, uint method } catch (Exception e) { - Log("info", $"Unable to load symbols on demand exception: {e.ToString()} url:{downloadURL} assembly: {asm.Name}"); + Log("info", $"Unable to load symbols on demand exception: {e} url:{downloadURL} assembly: {asm.Name}"); } } break; diff --git a/tools-local/tasks/mobile.tasks/WasmAppBuilder/PInvokeTableGenerator.cs b/tools-local/tasks/mobile.tasks/WasmAppBuilder/PInvokeTableGenerator.cs index 4e4b19edc3bc9..dd83ba70ce418 100644 --- a/tools-local/tasks/mobile.tasks/WasmAppBuilder/PInvokeTableGenerator.cs +++ b/tools-local/tasks/mobile.tasks/WasmAppBuilder/PInvokeTableGenerator.cs @@ -1,4 +1,3 @@ -// -*- indent-tabs-mode: nil -*- // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. diff --git a/tools-local/tasks/mobile.tasks/WasmAppBuilder/WasmAppBuilder.cs b/tools-local/tasks/mobile.tasks/WasmAppBuilder/WasmAppBuilder.cs index cd1ea7021d386..3726a933e4781 100644 --- a/tools-local/tasks/mobile.tasks/WasmAppBuilder/WasmAppBuilder.cs +++ b/tools-local/tasks/mobile.tasks/WasmAppBuilder/WasmAppBuilder.cs @@ -1,4 +1,3 @@ -// -*- indent-tabs-mode: nil -*- // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license.