Skip to content

Commit d379450

Browse files
authored
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
1 parent 80ff166 commit d379450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/scripting/c_sharp/c_sharp_exports.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ following as "Thing 1", "Thing 2", "Another Thing". The value will be stored as
455455
}
456456
457457
[Export]
458-
public MyEnum MyEnum { get; set; }
458+
public MyEnum MyEnumCurrent { get; set; }
459459
460460
Integer and string members can also be limited to a specific list of values using the
461461
``[Export]`` annotation with the ``PropertyHint.Enum`` hint.

0 commit comments

Comments
 (0)