Skip to content

Commit 8b1efc5

Browse files
committed
Make Optional readonly.
1 parent 1343104 commit 8b1efc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Avalonia.Base/Data/Optional.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Avalonia.Data
2020
/// conversion from <typeparamref name="T"/>
2121
/// - For an missing value, use <see cref="Empty"/> or simply `default`
2222
/// </remarks>
23-
public struct Optional<T>
23+
public readonly struct Optional<T>
2424
{
2525
private readonly T _value;
2626

0 commit comments

Comments
 (0)