What type of issue is this?
Prerequisites
Description
While computing derived properties such the ActionUsage.actionDefinition, the implementation uses the actionUsageSubject.OwnedRelationship.OfType<IFeatureTyping>().Select(featureTyping => featureTyping.Type) for instead of going directly to the ´.type´ property, which should be the case.
Golden rule: Directly go through properties when possible (specially when the documentation directly speaks about type or definition)
In the current example, the related documentation is "The Behaviors that are the types of this ActionUsage", meaning that the correct implementation shall be actionUsageSubject.type.OfType<IBehavior>().
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
While computing derived properties such the ActionUsage.actionDefinition, the implementation uses the
actionUsageSubject.OwnedRelationship.OfType<IFeatureTyping>().Select(featureTyping => featureTyping.Type)for instead of going directly to the ´.type´ property, which should be the case.Golden rule: Directly go through properties when possible (specially when the documentation directly speaks about type or definition)
In the current example, the related documentation is "The Behaviors that are the types of this ActionUsage", meaning that the correct implementation shall be
actionUsageSubject.type.OfType<IBehavior>().Steps to Reproduce
System Configuration