From cbbe684014e3be1bf11ca8fbf93ba0a6806f68d6 Mon Sep 17 00:00:00 2001 From: "David G. Moore, Jr" Date: Fri, 26 Jan 2024 08:38:17 -0500 Subject: [PATCH] Checking in so I can work on the VM --- .vscode/settings.json | 6 ++++++ Compat/IsExternalInit.cs | 18 ------------------ Dgmjr.Abstractions.csproj | 3 +++ Polyfill/IsExternalInit.cs | 14 ++++++++++++++ 4 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 .vscode/settings.json delete mode 100644 Compat/IsExternalInit.cs create mode 100644 Polyfill/IsExternalInit.cs 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 { } +}