Browse Source

More directly describe .Obj boxing

31 1 year ago
parent
commit
d41f09fce6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/scripting/c_sharp/c_sharp_variant.rst

+ 1 - 1
tutorials/scripting/c_sharp/c_sharp_variant.rst

@@ -62,7 +62,7 @@ Converting to the correct type avoids complicated behavior and should be preferr
 The ``Variant.Obj`` property returns a C# ``object`` with the correct value for any variant. This
 The ``Variant.Obj`` property returns a C# ``object`` with the correct value for any variant. This
 may be useful when the type of Variant is completely unknown. However, when possible, prefer more
 may be useful when the type of Variant is completely unknown. However, when possible, prefer more
 specific conversions. ``Variant.Obj`` evaluates a ``switch`` on ``Variant.VariantType`` and it may
 specific conversions. ``Variant.Obj`` evaluates a ``switch`` on ``Variant.VariantType`` and it may
-not be necessary. Also, if the result is a value type, it may be boxed when it normally wouldn't be.
+not be necessary. Also, if the result is a value type, it is boxed.
 
 
 For example, if the potential for ``Variant.As<MyNode>()`` to throw a invalid cast exception isn't
 For example, if the potential for ``Variant.As<MyNode>()`` to throw a invalid cast exception isn't
 acceptable, consider using a ``Variant.As<GodotObject>() is MyNode n`` type pattern instead.
 acceptable, consider using a ``Variant.As<GodotObject>() is MyNode n`` type pattern instead.