Skip to content

Commit 84d4c68

Browse files
committed
Mark BindableIReadOnlyListAdapterComWrappersMarshallerAttribute as obsolete
Added Obsolete and EditorBrowsable attributes to BindableIReadOnlyListAdapterComWrappersMarshallerAttribute to indicate it is deprecated and should not be used in new code.
1 parent cf4da9e commit 84d4c68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/WinRT.Runtime2/ABI/WindowsRuntime.InteropServices/Bindables/IBindableIReadOnlyListAdapter.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// Licensed under the MIT License.
33

44
using System;
5+
using System.ComponentModel;
56
using System.Runtime.CompilerServices;
67
using System.Runtime.InteropServices;
8+
using WindowsRuntime;
79
using WindowsRuntime.InteropServices;
810
using WindowsRuntime.InteropServices.Marshalling;
911
using static System.Runtime.InteropServices.ComWrappers;
@@ -85,6 +87,10 @@ static BindableIReadOnlyListAdapterInterfaceEntriesImpl()
8587
/// <summary>
8688
/// A custom <see cref="WindowsRuntimeComWrappersMarshallerAttribute"/> implementation for <see cref="BindableIReadOnlyListAdapter"/>.
8789
/// </summary>
90+
[Obsolete(WindowsRuntimeConstants.PrivateImplementationDetailObsoleteMessage,
91+
DiagnosticId = WindowsRuntimeConstants.PrivateImplementationDetailObsoleteDiagnosticId,
92+
UrlFormat = WindowsRuntimeConstants.CsWinRTDiagnosticsUrlFormat)]
93+
[EditorBrowsable(EditorBrowsableState.Never)]
8894
public sealed unsafe class BindableIReadOnlyListAdapterComWrappersMarshallerAttribute : WindowsRuntimeComWrappersMarshallerAttribute
8995
{
9096
/// <inheritdoc/>

0 commit comments

Comments
 (0)