From 7b6531307fb65dbe2cea03e6d4e20ff78aae51ca Mon Sep 17 00:00:00 2001 From: sakno Date: Thu, 2 Jan 2025 16:45:27 +0200 Subject: [PATCH] Fixed reference to instance member --- src/DotNext/Runtime/BoxedValue.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotNext/Runtime/BoxedValue.cs b/src/DotNext/Runtime/BoxedValue.cs index 0f07dff94..8f20a66cf 100644 --- a/src/DotNext/Runtime/BoxedValue.cs +++ b/src/DotNext/Runtime/BoxedValue.cs @@ -80,7 +80,7 @@ private BoxedValue() /// Unboxes the value. /// /// The boxed representation of the value. - public static implicit operator T(BoxedValue boxedValue) => boxedValue.Value; + public static implicit operator T(BoxedValue boxedValue) => boxedValue.value; /// /// Converts a value type to an object reference. @@ -118,5 +118,5 @@ private BoxedValue() /// Boxed value. /// Mutable reference to the boxed value. public static implicit operator ValueReference(BoxedValue boxedValue) - => new(boxedValue, ref boxedValue.Value); + => new(boxedValue, ref boxedValue.value); } \ No newline at end of file