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
Copy file name to clipboardExpand all lines: IChild.cs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
-
usingSystem.Collections.Generic;
1
+
usingSystem;
2
+
usingSystem.Collections.Generic;
3
+
usingSystem.Diagnostics;
4
+
usingSystem.Diagnostics.Contracts;
2
5
3
6
namespaceOpen.Hierarchy
4
7
{
@@ -19,6 +22,7 @@ public interface IChild<out TParent> : IChild
19
22
newTParent?Parent{get;}
20
23
}
21
24
25
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null check properly implemented.")]
22
26
publicstaticclassChildExtensions
23
27
{
24
28
/// <summary>
@@ -31,6 +35,7 @@ public static IEnumerable<TNode> GetAncestors<TNode>(
0 commit comments