Skip to content

Commit

Permalink
Removed unnecessary AggressiveInlining to UuidOfType
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Nov 22, 2020
1 parent e10f572 commit 65b7f00
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sources/Interop/Windows/shared/uuids/Windows.Manual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,17 @@ public readonly unsafe ref struct UuidOfType
{
private readonly Guid* riid;

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal UuidOfType(Guid* riid)
{
this.riid = riid;
}

/// <summary>Reads a <see cref="Guid"/> value from the GUID buffer for a given <see cref="UuidOfType"/> instance.</summary>
/// <param name="guid">The input <see cref="UuidOfType"/> instance to read data for.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator Guid(UuidOfType guid) => *guid.riid;

/// <summary>Returns the <see cref="Guid"/>* pointer to the GUID buffer for a given <see cref="UuidOfType"/> instance.</summary>
/// <param name="guid">The input <see cref="UuidOfType"/> instance to read data for.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator Guid*(UuidOfType guid) => guid.riid;
}

Expand Down

0 comments on commit 65b7f00

Please sign in to comment.