diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8b1f1f8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "sonarlint.connectedMode.project": { + "connectionId": "dgmjr-io", + "projectKey": "dgmjr-io_Abstractions" + } +} diff --git a/Compat/IsExternalInit.cs b/Compat/IsExternalInit.cs deleted file mode 100644 index 857ebaf..0000000 --- a/Compat/IsExternalInit.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// IsExternalInit.cs -// -// Created: 2022-11-02-08:16:48 -// Modified: 2022-11-02-08:16:48 -// -// Author: David G. Moore, Jr. -// -// Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved -// License: MIT (https://opensource.org/licenses/MIT) -// -namespace System.Runtime.CompilerServices -{ - /// - /// Allows the use of the init accessor on record properties. - /// - public static class IsExternalInit { } -} diff --git a/Dgmjr.Abstractions.csproj b/Dgmjr.Abstractions.csproj index 7a707d8..5b34abf 100644 --- a/Dgmjr.Abstractions.csproj +++ b/Dgmjr.Abstractions.csproj @@ -23,6 +23,9 @@ true false + + + diff --git a/Polyfill/IsExternalInit.cs b/Polyfill/IsExternalInit.cs new file mode 100644 index 0000000..696a072 --- /dev/null +++ b/Polyfill/IsExternalInit.cs @@ -0,0 +1,14 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.ComponentModel; + +namespace System.Runtime.CompilerServices +{ + /// + /// Reserved to be used by the compiler for tracking metadata. This class + /// should not be used by developers in source code. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + internal static class IsExternalInit { } +}