Skip to content

Commit 71b19e9

Browse files
committed
Rename type param
1 parent f0cb9dd commit 71b19e9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Dynatello/Builders/UpdateRequestBuilder.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ namespace Dynatello.Builders;
77
/// <summary>
88
/// A record based builder for creating <see cref="UpdateItemRequest" /> that can be configured via the `with` syntax.
99
/// </summary>
10-
public readonly record struct UpdateRequestBuilder<TArg>
10+
public readonly record struct UpdateRequestBuilder<T>
1111
{
12-
private readonly Func<TArg, IAttributeExpression> _attributeExpressionSelector;
12+
private readonly Func<T, IAttributeExpression> _attributeExpressionSelector;
1313
private readonly IDynamoDBKeyMarshaller _keyMarshaller;
14-
private readonly Func<IDynamoDBKeyMarshaller, TArg, Dictionary<string, AttributeValue>> _keySelector;
14+
private readonly Func<IDynamoDBKeyMarshaller, T, Dictionary<string, AttributeValue>> _keySelector;
1515
private readonly ReturnConsumedCapacity _returnConsumedCapacity = ReturnConsumedCapacity.NONE;
1616
private readonly ReturnItemCollectionMetrics _returnItemCollectionMetrics = ReturnItemCollectionMetrics.NONE;
1717
private readonly ReturnValue _returnValues = ReturnValue.NONE;
@@ -28,9 +28,9 @@ public UpdateRequestBuilder()
2828
}
2929

3030
internal UpdateRequestBuilder(
31-
Func<TArg, IAttributeExpression> attributeExpressionSelector,
31+
Func<T, IAttributeExpression> attributeExpressionSelector,
3232
string tableName,
33-
Func<IDynamoDBKeyMarshaller, TArg, Dictionary<string, AttributeValue>> keySelector,
33+
Func<IDynamoDBKeyMarshaller, T, Dictionary<string, AttributeValue>> keySelector,
3434
IDynamoDBKeyMarshaller keyMarshaller
3535
)
3636
{
@@ -49,9 +49,9 @@ public string TableName
4949
}
5050

5151
/// <summary>
52-
/// A function to specify how the keys should be accessed through the <typeparamref name="TArg" />.
52+
/// A function to specify how the keys should be accessed through the <typeparamref name="T" />.
5353
/// </summary>
54-
public Func<IDynamoDBKeyMarshaller, TArg, Dictionary<string, AttributeValue>> KeySelector
54+
public Func<IDynamoDBKeyMarshaller, T, Dictionary<string, AttributeValue>> KeySelector
5555
{
5656
get => _keySelector;
5757
init => _keySelector = value ?? throw new ArgumentNullException(nameof(value));
@@ -89,7 +89,7 @@ public ReturnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure
8989
/// <summary>
9090
/// Will build a <see cref="UpdateItemRequest" /> with the specified configurations.
9191
/// </summary>
92-
public UpdateItemRequest Build(TArg arg)
92+
public UpdateItemRequest Build(T arg)
9393
{
9494
var expression = _attributeExpressionSelector(arg);
9595
return new UpdateItemRequest

0 commit comments

Comments
 (0)