You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing properties from IEnumerable to List alters the public contract and may break callers relying on broader interfaces or deferred execution. Validate all callers, serialization formats, and ensure backward compatibility where needed.
Filters is nullable while Operands and Conditions are non-null with empty defaults. Confirm intended nullability across these collections to avoid inconsistent handling and potential NREs when Filters is null.
Using a nullable list property can cause null-reference issues for consumers expecting an empty collection. Initialize the list to an empty list to ensure safe iteration and serialization consistency.
Why: The suggestion correctly identifies a nullable list property Filters that should be initialized to prevent potential NullReferenceException, which is a good practice for collection properties.
Medium
General
Replace '[]' with 'new()'
The target framework may not support the collection expression '[]', risking compilation issues. Use 'new()' for broader compatibility and clarity.
Why: The suggestion correctly points out that using the [] collection expression might cause compatibility issues with older C# versions and suggests the more widely compatible new() syntax.
Low
Use compatible list initialization
Avoid the collection expression if older language versions are in use and ensure consistent initialization. Replace with 'new()' to reduce language-version dependency.
Why: The suggestion correctly points out that using the [] collection expression might cause compatibility issues with older C# versions and suggests the more widely compatible new() syntax.
Low
More
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Other
Description
Reverted collection types from
IEnumerabletoListChanged three properties in vector storage models
Diagram Walkthrough
File Walkthrough
VectorFilterGroup.cs
Revert collection types to concrete List implementationssrc/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorFilterGroup.cs
Filtersproperty fromIEnumerabletoListOperandsproperty fromIEnumerabletoListConditionsproperty fromIEnumerabletoList