File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ namespace SysML2.NET.Core.POCO.Core.Classifiers
2222{
2323 using System ;
2424 using System . Collections . Generic ;
25+ using System . Linq ;
2526
2627 using SysML2 . NET . Core . Core . Types ;
2728 using SysML2 . NET . Core . Root . Namespaces ;
@@ -53,10 +54,13 @@ internal static class ClassifierExtensions
5354 /// <returns>
5455 /// the computed result
5556 /// </returns>
56- [ System . Diagnostics . CodeAnalysis . ExcludeFromCodeCoverage ]
57+ /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
5758 internal static List < ISubclassification > ComputeOwnedSubclassification ( this IClassifier classifierSubject )
5859 {
59- throw new NotSupportedException ( "Create a GitHub issue when this method is required" ) ;
60+ return classifierSubject == null
61+ ? throw new ArgumentNullException ( nameof ( classifierSubject ) )
62+ : [ ..classifierSubject . ownedSpecialization . OfType < ISubclassification > ( ) ] ;
63+ //throw new NotSupportedException("Create a GitHub issue when this method is required");
6064 }
6165
6266 }
You can’t perform that action at this time.
0 commit comments