Skip to content

Commit d41f09f

Browse files
committed
More directly describe .Obj boxing
1 parent c2e68a8 commit d41f09f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/scripting/c_sharp/c_sharp_variant.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Converting to the correct type avoids complicated behavior and should be preferr
6262
The ``Variant.Obj`` property returns a C# ``object`` with the correct value for any variant. This
6363
may be useful when the type of Variant is completely unknown. However, when possible, prefer more
6464
specific conversions. ``Variant.Obj`` evaluates a ``switch`` on ``Variant.VariantType`` and it may
65-
not be necessary. Also, if the result is a value type, it may be boxed when it normally wouldn't be.
65+
not be necessary. Also, if the result is a value type, it is boxed.
6666

6767
For example, if the potential for ``Variant.As<MyNode>()`` to throw a invalid cast exception isn't
6868
acceptable, consider using a ``Variant.As<GodotObject>() is MyNode n`` type pattern instead.

0 commit comments

Comments
 (0)