Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullable annotations for AvaloniaObject/AvaloniaProperty etc. #7078

Merged
merged 4 commits into from
Dec 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't need this check as base class does it.
grokys committed Dec 7, 2021
commit 5023b9c02a7ff66a3d262e51edca2b6c5b5c945a
5 changes: 0 additions & 5 deletions src/Avalonia.Base/StyledPropertyBase.cs
Original file line number Diff line number Diff line change
@@ -33,11 +33,6 @@ protected StyledPropertyBase(
Action<IAvaloniaObject, bool>? notifying = null)
: base(name, ownerType, metadata, notifying)
{
if (name.Contains("."))
{
throw new ArgumentException("'name' may not contain periods.");
}

_inherits = inherits;
ValidateValue = validate;
HasCoercion |= metadata.CoerceValue != null;