Pārlūkot izejas kodu

Update c_sharp_exports.rst

changed line 458:
    public MyEnum MyEnum { get; set; }
to:
    public MyEnum MyEnumCurrent { get; set; }

because it throws an error if you reuse the already declared name
Deer ♡ 3 mēneši atpakaļ
vecāks
revīzija
d3794505f0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tutorials/scripting/c_sharp/c_sharp_exports.rst

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

@@ -455,7 +455,7 @@ following as "Thing 1", "Thing 2", "Another Thing". The value will be stored as
     }
 
     [Export]
-    public MyEnum MyEnum { get; set; }
+    public MyEnum MyEnumCurrent { get; set; }
 
 Integer and string members can also be limited to a specific list of values using the
 ``[Export]`` annotation with the ``PropertyHint.Enum`` hint.