mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-09 06:26:02 +03:00
Make Optional<T> into readonly struct to avoid heap allocations
This commit is contained in:
parent
21470cb056
commit
9aa2c63e0b
35 changed files with 176 additions and 203 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<TiledColor>.Empty }
|
||||
new ColorProperty { Name = "unsetcolorprop", Value = Optional.Empty }
|
||||
]
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue