Correct C# syntax in _validate_property example for the Object class

This commit is contained in:
Gwen 2023-12-30 19:13:58 +01:00 committed by GitHub
parent 13a0d6e9b2
commit e40b23c619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@
{ {
if (property["name"].AsStringName() == PropertyName.Number && IsNumberEditable) if (property["name"].AsStringName() == PropertyName.Number && IsNumberEditable)
{ {
var usage = property["usage"].As>PropertyUsageFlags<() | PropertyUsageFlags.ReadOnly; var usage = property["usage"].As<PropertyUsageFlags>() | PropertyUsageFlags.ReadOnly;
property["usage"] = (int)usage; property["usage"] = (int)usage;
} }
} }