From 8ba07fc124eee6a0fbb6f886e90ffd0628e86e48 Mon Sep 17 00:00:00 2001 From: Vladimir Sadov Date: Wed, 3 May 2017 15:22:32 -0700 Subject: [PATCH] Adding System\Runtime\CompilerServices\IsByRefLikeAttribute type (#11369) described in: https://github.com/dotnet/corefx/issues/19212 --- .../shared/System.Private.CoreLib.Shared.projitems | 3 ++- .../CompilerServices/IsByRefLikeAttribute.cs | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/mscorlib/shared/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs diff --git a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems index 75d31c0..4a67af32 100644 --- a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems @@ -1,4 +1,4 @@ - + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) @@ -284,6 +284,7 @@ + diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs new file mode 100644 index 0000000..90e49d2 --- /dev/null +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs @@ -0,0 +1,21 @@ +// 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 in the project root for more information. + +using System.ComponentModel; + +namespace System.Runtime.CompilerServices +{ + /// + /// Reserved to be used by the compiler for tracking metadata. + /// This attribute should not be used by developers in source code. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + [AttributeUsage(AttributeTargets.Struct)] + public sealed class IsByRefLikeAttribute : Attribute + { + public IsByRefLikeAttribute() + { + } + } +} -- 2.7.4