Skip to content

Commit

Permalink
Fixed reference to instance member
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 2, 2025
1 parent cd13f03 commit 7b65313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DotNext/Runtime/BoxedValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private BoxedValue()
/// Unboxes the value.
/// </summary>
/// <param name="boxedValue">The boxed representation of the value.</param>
public static implicit operator T(BoxedValue<T> boxedValue) => boxedValue.Value;
public static implicit operator T(BoxedValue<T> boxedValue) => boxedValue.value;

/// <summary>
/// Converts a value type to an object reference.
Expand Down Expand Up @@ -118,5 +118,5 @@ private BoxedValue()
/// <param name="boxedValue">Boxed value.</param>
/// <returns>Mutable reference to the boxed value.</returns>
public static implicit operator ValueReference<T>(BoxedValue<T> boxedValue)
=> new(boxedValue, ref boxedValue.Value);
=> new(boxedValue, ref boxedValue.value);
}

0 comments on commit 7b65313

Please sign in to comment.