Skip to content

Commit

Permalink
+ BytecodeApi.Data.TreeNode<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
bytecode77 committed Nov 19, 2023
1 parent 8d80976 commit 664ee33
Show file tree
Hide file tree
Showing 15 changed files with 516 additions and 13 deletions.
2 changes: 1 addition & 1 deletion BytecodeApi.CommandLineParser/Option.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Option(string[] arguments, string[]? alternatives)
Check.ArgumentEx.ArrayElementsRequired(alternatives);
Check.ArgumentEx.ArrayValuesNotNull(alternatives);
Check.ArgumentEx.ArrayValuesNotStringEmpty(alternatives);
Check.Argument(alternatives.All(item => Validate.AlphaNumeric(item)), nameof(alternatives), "String must be alphanumeric.");
Check.Argument(alternatives.All(Validate.AlphaNumeric), nameof(alternatives), "String must be alphanumeric.");
}

Arguments = arguments.ToReadOnlyCollection();
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi.CommandLineParser/OptionSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ void ICollection<Option>.Add(Option item)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="OptionSet" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="OptionSet" />.
/// </returns>
public bool Remove(Option item)
{
return Options.Remove(item);
Expand Down
4 changes: 3 additions & 1 deletion BytecodeApi.CsvParser/CsvDelimiterDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public CsvDelimiterDetector(string[] delimitersToTest, int minRowsToTest, int ma
/// <para><see cref="MinRowsToTest" /> = 2</para>
/// <para><see cref="MaxRowsToTest" /> = 10</para>
/// </summary>
/// <returns>CsvDelimiterDetector.</returns>
/// <returns>
/// A new <see cref="CsvDelimiterDetector" /> with default values.
/// </returns>
public static CsvDelimiterDetector CreateDefault()
{
return new(new[] { ",", ";", "\t", "|" }, 2, 10);
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi.CsvParser/CsvRowCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public void Add(CsvRow item)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="CsvRowCollection" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="CsvRowCollection" />.
/// </returns>
public bool Remove(CsvRow item)
{
return Rows.Remove(item);
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi.IniParser/IniPropertyCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public IniProperty Add(string name, string value)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="IniPropertyCollection" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="IniPropertyCollection" />.
/// </returns>
public bool Remove(IniProperty item)
{
return Properties.Remove(item);
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi.IniParser/IniSectionCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public IniSection Add(string name)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="IniSectionCollection" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="IniSectionCollection" />.
/// </returns>
public bool Remove(IniSection item)
{
return Sections.Remove(item);
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi.Lexer/TokenCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public void Add(Token<TTokenType> item)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="TokenCollection{TTokenType}" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="TokenCollection{TTokenType}" />.
/// </returns>
public bool Remove(Token<TTokenType> item)
{
return Tokens.Remove(item);
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi/Data/BlobCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ public void Add(Blob item)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="BlobCollection" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="BlobCollection" />.
/// </returns>
public bool Remove(Blob item)
{
return Blobs.Remove(item);
Expand Down
3 changes: 2 additions & 1 deletion BytecodeApi/Data/BlobTreeNodeCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public void Add(BlobTreeNode item)
/// <returns>
/// <see langword="true" />, if <paramref name="item" /> is successfully removed;
/// otherwise, <see langword="false" />.
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="BlobTreeNodeCollection" />.</returns>
/// This method also returns <see langword="false" />, if <paramref name="item" /> was not found in the <see cref="BlobTreeNodeCollection" />.
/// </returns>
public bool Remove(BlobTreeNode item)
{
return Nodes.Remove(item);
Expand Down
4 changes: 3 additions & 1 deletion BytecodeApi/Data/ICopy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public interface ICopy<T>
/// <summary>
/// Creates a new instance and copies all properties.
/// </summary>
/// <returns>A new instance with all properties copied from this instance.</returns>
/// <returns>
/// A new instance with all properties copied from this instance.
/// </returns>
public T Copy();
}
4 changes: 3 additions & 1 deletion BytecodeApi/Data/IDeepCopy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public interface IDeepCopy<T>
/// <summary>
/// Creates a new instance and copies all properties, including navigation properties.
/// </summary>
/// <returns>A new instance with all properties, including navigation properties, copied from this instance.</returns>
/// <returns>
/// A new instance with all properties, including navigation properties, copied from this instance.
/// </returns>
public T DeepCopy();
}
Loading

0 comments on commit 664ee33

Please sign in to comment.