Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CoreMidi/MidiServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#nullable enable

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using ObjCRuntime;
Expand Down Expand Up @@ -835,6 +836,9 @@ internal IntPtr BytePointer {
get { return byteptr; }
}

#if !XAMCORE_5_0
[EditorBrowsable (EditorBrowsableState.Never)]
[Obsolete ("This property may return a pointer to a managed object, and this pointer is never safe to use. Use ByteArray or BytePointer instead.")]
public IntPtr Bytes {
get {
if (bytes is null || bytes.Length < 1)
Expand All @@ -846,6 +850,7 @@ public IntPtr Bytes {
}
}
}
#endif

internal static int GetPacketLength (int payload_length)
{
Expand Down