mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-09 14:06:03 +03:00
Make Optional<T> into readonly struct to avoid heap allocations
This commit is contained in:
parent
de41fb5508
commit
92702a512d
35 changed files with 177 additions and 205 deletions
|
@ -58,7 +58,7 @@ public partial class TestData
|
|||
new IntProperty { Name = "intprop", Value = 8 },
|
||||
new ObjectProperty { Name = "objectprop", Value = 5 },
|
||||
new StringProperty { Name = "stringprop", Value = "This is a string, hello world!" },
|
||||
new ColorProperty { Name = "unsetcolorprop", Value = Optional<Color>.Empty }
|
||||
new ColorProperty { Name = "unsetcolorprop", Value = Optional.Empty }
|
||||
]
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue