Skip to content

Commit 9bbd542

Browse files
committed
Comments plus spell fix
1 parent 9a34957 commit 9bbd542

15 files changed

+257
-46
lines changed

src/DelegatesFactory/CustomDelegates/StructGetFunc.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for returning value of property from structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Type of structure</typeparam>
13+
/// <typeparam name="TProp">Property type</typeparam>
14+
/// <param name="i">Structure type instance</param>
15+
/// <returns>Value of a property</returns>
916
public delegate TProp StructGetFunc<T, out TProp>(ref T i) where T : struct;
1017
}

src/DelegatesFactory/CustomDelegates/StructIndex1GetFunc.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,14 @@
66

77
namespace Delegates.CustomDelegates
88
{
9-
public delegate TProp StructIndex1GetFunc<T, in TI1, out TProp>(ref T i, TI1 i1) where T : struct;
9+
/// <summary>
10+
/// Delegates for returning value of indexer with single index parameter from structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TI1">Index parameter type</typeparam>
14+
/// <typeparam name="TReturn">Index return type</typeparam>
15+
/// <param name="instance">Structure type instance</param>
16+
/// <param name="index">Index parameter</param>
17+
/// <returns>Value of indexer at given index</returns>
18+
public delegate TReturn StructIndex1GetFunc<T, in TI1, out TReturn>(ref T instance, TI1 index) where T : struct;
1019
}

src/DelegatesFactory/CustomDelegates/StructIndex1SetAction.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,14 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for setting value of indexer with single index parameter in structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TI1">Index parameter type</typeparam>
14+
/// <typeparam name="TProp">Property type</typeparam>
15+
/// <param name="i">Structure type instance</param>
16+
/// <param name="i1">Index parameter</param>
17+
/// <param name="value">Value of indexer to set at given parameter</param>
918
public delegate void StructIndex1SetAction<T, in TI1, in TProp>(ref T i, TI1 i1, TProp value);
1019
}

src/DelegatesFactory/CustomDelegates/StructIndex2GetFunc.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,16 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for returning value of indexer with two index parameters from structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TI1">First index parameter type</typeparam>
14+
/// <typeparam name="TI2">Second index parameter type</typeparam>
15+
/// <typeparam name="TProp">Property type</typeparam>
16+
/// <param name="i">Structure type instance</param>
17+
/// <param name="i1">First index parameter</param>
18+
/// <param name="i2">Second index parameter</param>
19+
/// <returns>Value of indexer at given index parameters</returns>
920
public delegate TProp StructIndex2GetFunc<T, in TI1, in TI2, out TProp>(ref T i, TI1 i1, TI2 i2) where T : struct;
1021
}

src/DelegatesFactory/CustomDelegates/StructIndex2SetAction.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,16 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for setting value of indexer with two index parameters in structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TI1">First index parameter type</typeparam>
14+
/// <typeparam name="TI2">Second index parameter type</typeparam>
15+
/// <typeparam name="TProp">Property type</typeparam>
16+
/// <param name="i">Structure type instance</param>
17+
/// <param name="i1">First index parameter</param>
18+
/// <param name="i2">Second index parameter</param>
19+
/// <param name="value">Value of indexer to set at given index parameters</param>
920
public delegate void StructIndex2SetAction<T, in TI1, in TI2, in TProp>(ref T i, TI1 i1, TI2 i2, TProp value);
1021
}

src/DelegatesFactory/CustomDelegates/StructIndex3GetFunc.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for returning value of indexer with three index parameters from structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TI1">First index parameter type</typeparam>
14+
/// <typeparam name="TI2">Second index parameter type</typeparam>
15+
/// <typeparam name="TI3">Third index parameter type</typeparam>
16+
/// <typeparam name="TProp">Property type</typeparam>
17+
/// <param name="i">Structure type instance</param>
18+
/// <param name="i1">First index parameter</param>
19+
/// <param name="i2">Second index parameter</param>
20+
/// <param name="i3">Third index parameter</param>
21+
/// <returns>Value of indexer at given index parameters</returns>
922
public delegate TProp StructIndex3GetFunc<T, in TI1, in TI2, in TI3, out TProp>(ref T i, TI1 i1, TI2 i2, TI3 i3)
1023
where T : struct;
1124
}

src/DelegatesFactory/CustomDelegates/StructIndex3SetAction.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for setting value of indexer with three index parameters in structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TI1">First index parameter type</typeparam>
14+
/// <typeparam name="TI2">Second index parameter type</typeparam>
15+
/// <typeparam name="TI3">Third index parameter type</typeparam>
16+
/// <typeparam name="TProp">Property type</typeparam>
17+
/// <param name="i">Structure type instance</param>
18+
/// <param name="i1">First index parameter</param>
19+
/// <param name="i2">Second index parameter</param>
20+
/// <param name="i3">Third index parameter</param>
21+
/// <param name="value">Value of indexer to set at given index parameters</param>
922
public delegate void StructIndex3SetAction<T, in TI1, in TI2, in TI3, in TProp>(
1023
ref T i, TI1 i1, TI2 i2, TI3 i3, TProp value);
1124
}

src/DelegatesFactory/CustomDelegates/StructIndexesSetAction.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,13 @@
66

77
namespace Delegates.CustomDelegates
88
{
9-
public delegate void StructIndexesSetAction<T, in TProp>(ref T i, object[] indexes, TProp value);
9+
/// <summary>
10+
/// Delegates for setting value of indexer with unspecified index parameters in structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TValue">Value type</typeparam>
14+
/// <param name="instance">Structure type instance</param>
15+
/// <param name="indexes">Set of indexer index parameters</param>
16+
/// <param name="value">Value of indexer to set at given index parameters</param>
17+
public delegate void StructIndexesSetAction<T, in TValue>(ref T instance, object[] indexes, TValue value);
1018
}

src/DelegatesFactory/CustomDelegates/StructSetAction.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,13 @@
66

77
namespace Delegates.CustomDelegates
88
{
9+
/// <summary>
10+
/// Delegates for setting value of indexer with unspecified index parameters in structure type.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TProp">Property type</typeparam>
14+
/// <param name="i">Structure type instance</param>
15+
/// <param name="value">Value of indexer to set at given index parameters</param>
16+
/// <returns>Changed structure value</returns>
917
public delegate T StructSetAction<T, in TProp>(T i, TProp value);
1018
}

src/DelegatesFactory/CustomDelegates/StructSetActionRef.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@
66

77
namespace Delegates
88
{
9+
/// <summary>
10+
/// Delegates for setting value of indexer with single index parameter in structure type by reference.
11+
/// </summary>
12+
/// <typeparam name="T">Structure type</typeparam>
13+
/// <typeparam name="TProp">Property type</typeparam>
14+
/// <param name="i">Structure type instance</param>
15+
/// <param name="value">Value of indexer to set at given index parameters</param>
916
public delegate void StructSetActionRef<T, in TProp>(ref T i, TProp value);
1017
}

0 commit comments

Comments
 (0)