Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 545a91b

Browse files
VSadovsafern
authored andcommitted
Adding System\Runtime\CompilerServices\IsByRefLikeAttribute type (#11369)
described in: https://github.com/dotnet/corefx/issues/19212 Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
1 parent ff220e9 commit 545a91b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/Common/src/CoreLib/System.Private.CoreLib.Shared.projitems

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
@@ -284,6 +284,7 @@
284284
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\INotifyCompletion.cs"/>
285285
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\InternalsVisibleToAttribute.cs"/>
286286
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsConst.cs"/>
287+
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsByRefLikeAttribute.cs"/>
287288
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsVolatile.cs"/>
288289
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IteratorStateMachineAttribute.cs"/>
289290
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ITuple.cs"/>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.ComponentModel;
6+
7+
namespace System.Runtime.CompilerServices
8+
{
9+
/// <summary>
10+
/// Reserved to be used by the compiler for tracking metadata.
11+
/// This attribute should not be used by developers in source code.
12+
/// </summary>
13+
[EditorBrowsable(EditorBrowsableState.Never)]
14+
[AttributeUsage(AttributeTargets.Struct)]
15+
public sealed class IsByRefLikeAttribute : Attribute
16+
{
17+
public IsByRefLikeAttribute()
18+
{
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)