Skip to content

Commit

Permalink
Add xml comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChainsManipulator committed Dec 10, 2024
1 parent 3561ad5 commit 44282dd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libiada.Core.Tests/Core/SimpleTypes/ValueStringTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void EqualsTest()
Assert.Multiple(() =>
{
Assert.That(new ValueString("1"), Is.EqualTo(new ValueString('1')));
Assert.That(new ValueString("abc"), Is.EqualTo(new ValueString("abc")));
Assert.That(new ValueString("abc"), Is.EqualTo(new ValueString("ab" + "c")));
});
}
}
4 changes: 4 additions & 0 deletions Libiada.Core/Attributes/BindingAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

using Libiada.Core.Core;

/// <summary>
/// Used to set binding value to other enums.
/// </summary>
/// <seealso cref="System.Attribute" />
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public class BindingAttribute : Attribute
{
Expand Down
4 changes: 4 additions & 0 deletions Libiada.Core/Attributes/BindingModeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

using Libiada.Core.Core;

/// <summary>
/// Used to set binding mode value to other enums.
/// </summary>
/// <seealso cref="System.Attribute" />
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public class BindingModeAttribute : Attribute
{
Expand Down
4 changes: 4 additions & 0 deletions Libiada.Core/Attributes/LinkAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

using Libiada.Core.Core;

/// <summary>
/// Used to set link value to other enums.
/// </summary>
/// <seealso cref="System.Attribute" />
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public class LinkAttribute : Attribute
{
Expand Down
3 changes: 3 additions & 0 deletions Libiada.Core/Core/Binding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

/// <summary>
/// Represents binding (reading direction) of the intervals in the sequence.
/// </summary>
public enum Binding : byte
{
/// <summary>
Expand Down
8 changes: 7 additions & 1 deletion Libiada.Core/Core/BindingMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

/// <summary>
/// Represents binding mode of the intervals in the sequence.
/// In other words which of the intervals on the ends
/// of the sequence are taken into account and in what manner.
/// </summary>
public enum BindingMode : byte
{
/// <summary>
Expand All @@ -21,7 +26,8 @@ public enum BindingMode : byte
Normal = 1,

/// <summary>
/// Cyclic binding mode closes sequence into a loop and each element gets one corresponding interval.
/// Cyclic binding mode closes sequence into a loop
/// and each element gets one corresponding interval.
/// </summary>
[Display(Name = "Cyclic binding mode")]
[Description("Сloses sequence into a loop and each element gets one corresponding interval")]
Expand Down

0 comments on commit 44282dd

Please sign in to comment.