What type of issue is this?
Prerequisites
Description
Some derived properties/operation are subsets of collection properties. For those that have the multiplicity as [1..1], a specific call to the RequiredSingleTypeOf method is applied to make sure to have one single element that matches.
When the multiplicity is [0..1], most of implementation uses naively the FirstOfDefault() from LinQ method that would silently accepts if the collection contains many elements that matches a predicate.
A new extension method that would be the sibling of RequiredSingleTypeOf but allowing default value shall be implemented. Current implemented extend methods that violates the rules has to be fixed
Steps to Reproduce
System Configuration
- SysML2.NET version:
- Environment (Operating system, version and so on):
- .NET Framework version:
- Additional information:
What type of issue is this?
Prerequisites
Description
Some derived properties/operation are subsets of collection properties. For those that have the multiplicity as [1..1], a specific call to the RequiredSingleTypeOf method is applied to make sure to have one single element that matches.
When the multiplicity is [0..1], most of implementation uses naively the FirstOfDefault() from LinQ method that would silently accepts if the collection contains many elements that matches a predicate.
A new extension method that would be the sibling of RequiredSingleTypeOf but allowing default value shall be implemented. Current implemented extend methods that violates the rules has to be fixed
Steps to Reproduce
System Configuration