浏览代码

More directly describe .Obj boxing

31 1 年之前
父节点
当前提交
d41f09fce6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.