-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat(Sortable): bump version 10.0.2 #929
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,34 +1,39 @@ | ||||
| // Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||||
| // Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||||
| // Website: https://www.blazor.zone or https://argozhang.github.io/ | ||||
|
|
||||
| namespace BootstrapBlazor.Components; | ||||
|
|
||||
| /// <summary> | ||||
| /// SortableEvent 类 | ||||
| /// <para lang="zh">SortableEvent 类</para> | ||||
| /// <para lang="en">SortableEvent class</para> | ||||
| /// </summary> | ||||
| public class SortableEvent | ||||
| { | ||||
| /// <summary> | ||||
| /// 获得/设置 原始项所属容器 Id | ||||
| /// <para lang="zh">获得/设置 原始项所属容器 Id</para> | ||||
| /// <para lang="en">Gets or sets the container Id of the original item.</para> | ||||
| /// </summary> | ||||
| [NotNull] | ||||
|
||||
| [NotNull] |
Copilot
AI
Feb 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[NotNull] on value type properties has no effect (e.g., OldIndex is int and cannot be null). Remove the attribute to avoid implying nullable semantics.
Copilot
AI
Feb 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[NotNull] on value type properties has no effect (e.g., NewIndex is int and cannot be null). Remove the attribute to avoid implying nullable semantics.
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,27 +1,31 @@ | ||||||||||||||||
| // Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||||||||||||||||
| // Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||||||||||||||||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||||||||||||||||
| // Website: https://www.blazor.zone or https://argozhang.github.io/ | ||||||||||||||||
|
|
||||||||||||||||
| namespace BootstrapBlazor.Components; | ||||||||||||||||
|
|
||||||||||||||||
| /// <summary> | ||||||||||||||||
| /// SortableListItem 类 | ||||||||||||||||
| /// <para lang="zh">SortableListItem 类</para> | ||||||||||||||||
| /// <para lang="en">SortableListItem class</para> | ||||||||||||||||
| /// </summary> | ||||||||||||||||
| public class SortableListItem | ||||||||||||||||
| { | ||||||||||||||||
| /// <summary> | ||||||||||||||||
| /// 获得/设置 原始项所属容器 Id | ||||||||||||||||
| /// <para lang="zh">获得/设置 原始项所属容器 Id</para> | ||||||||||||||||
| /// <para lang="en">Gets or sets the container Id of the original item.</para> | ||||||||||||||||
| /// </summary> | ||||||||||||||||
| [NotNull] | ||||||||||||||||
|
Comment on lines
+14
to
17
|
||||||||||||||||
| /// <para lang="zh">获得/设置 原始项所属容器 Id</para> | |
| /// <para lang="en">Gets or sets the container Id of the original item.</para> | |
| /// </summary> | |
| [NotNull] | |
| /// <para lang="zh">获得/设置 原始项所属容器 Id(某些回调中可能为空)</para> | |
| /// <para lang="en">Gets or sets the container Id of the original item (may be null for some callbacks).</para> | |
| /// </summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Using
[NotNull]on value-type propertiesOldIndexandNewIndexis redundant and potentially misleading.Since
OldIndexandNewIndexare non-nullableints,[NotNull]has no effect here and may imply they can be null. Please remove the attribute from these properties and keep it only on nullable reference-type members likeFromId.Suggested implementation:
In the same file (
SortableEvent.cs), also remove[NotNull]from any other non-nullable value-type properties such asNewIndex, keeping[NotNull]only on nullable reference-type members likeFromId.