Skip to content

Commit 16cb35f

Browse files
authored
[wasm] hide interop delegates from intelisense (#75800)
1 parent 2f3fcca commit 16cb35f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/libraries/System.Runtime.InteropServices.JavaScript/ref/System.Runtime.InteropServices.JavaScript.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ public sealed class JSMarshalerType
201201
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
202202
public struct JSMarshalerArgument
203203
{
204+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
204205
public delegate void ArgumentToManagedCallback<T>(ref JSMarshalerArgument arg, out T value);
206+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
205207
public delegate void ArgumentToJSCallback<T>(ref JSMarshalerArgument arg, T value);
206208
public void Initialize() { throw null; }
207209
public void ToManaged(out bool value) { throw null; }

src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/Marshaling/JSMarshalerArgument.Task.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ public partial struct JSMarshalerArgument
1313
/// Helps with marshaling of the Task result or Function arguments.
1414
/// It's used by JSImport code generator and should not be used by developers in source code.
1515
/// </summary>
16+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1617
public delegate void ArgumentToManagedCallback<T>(ref JSMarshalerArgument arg, out T value);
1718

1819
/// <summary>
1920
/// Helps with marshaling of the Task result or Function arguments.
2021
/// It's used by JSImport code generator and should not be used by developers in source code.
2122
/// </summary>
23+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
2224
public delegate void ArgumentToJSCallback<T>(ref JSMarshalerArgument arg, T value);
2325

2426
/// <summary>

0 commit comments

Comments
 (0)