Skip to content

Commit 789b6e6

Browse files
authored
Switch to file-scoped namespaces (#434)
1 parent a354d01 commit 789b6e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+7140
-7207
lines changed

Diff for: DataStructures/AATree/AATree.cs

+307-308
Large diffs are not rendered by default.

Diff for: DataStructures/AATree/AATreeNode.cs

+30-31
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,39 @@
1-
namespace DataStructures.AATree
1+
namespace DataStructures.AATree;
2+
3+
/// <summary>
4+
/// Generic node class for AATree.
5+
/// </summary>
6+
/// <typeparam name="TKey">Type of key for node.</typeparam>
7+
public class AaTreeNode<TKey>
28
{
39
/// <summary>
4-
/// Generic node class for AATree.
10+
/// Initializes a new instance of the <see cref="AaTreeNode{TKey}" /> class.
511
/// </summary>
6-
/// <typeparam name="TKey">Type of key for node.</typeparam>
7-
public class AaTreeNode<TKey>
12+
/// <param name="key">The initial key of this node.</param>
13+
/// <param name="level">The level of this node. See <see cref="AaTree{TKey}" /> for more details.</param>
14+
public AaTreeNode(TKey key, int level)
815
{
9-
/// <summary>
10-
/// Initializes a new instance of the <see cref="AaTreeNode{TKey}" /> class.
11-
/// </summary>
12-
/// <param name="key">The initial key of this node.</param>
13-
/// <param name="level">The level of this node. See <see cref="AaTree{TKey}" /> for more details.</param>
14-
public AaTreeNode(TKey key, int level)
15-
{
16-
Key = key;
17-
Level = level;
18-
}
16+
Key = key;
17+
Level = level;
18+
}
1919

20-
/// <summary>
21-
/// Gets or Sets key for this node.
22-
/// </summary>
23-
public TKey Key { get; set; }
20+
/// <summary>
21+
/// Gets or Sets key for this node.
22+
/// </summary>
23+
public TKey Key { get; set; }
2424

25-
/// <summary>
26-
/// Gets or Sets level for this node.
27-
/// </summary>
28-
public int Level { get; set; }
25+
/// <summary>
26+
/// Gets or Sets level for this node.
27+
/// </summary>
28+
public int Level { get; set; }
2929

30-
/// <summary>
31-
/// Gets or sets the left subtree of this node.
32-
/// </summary>
33-
public AaTreeNode<TKey>? Left { get; set; }
30+
/// <summary>
31+
/// Gets or sets the left subtree of this node.
32+
/// </summary>
33+
public AaTreeNode<TKey>? Left { get; set; }
3434

35-
/// <summary>
36-
/// Gets or sets the right subtree of this node.
37-
/// </summary>
38-
public AaTreeNode<TKey>? Right { get; set; }
39-
}
35+
/// <summary>
36+
/// Gets or sets the right subtree of this node.
37+
/// </summary>
38+
public AaTreeNode<TKey>? Right { get; set; }
4039
}

0 commit comments

Comments
 (0)