Skip to content

Commit 355c1da

Browse files
committed
Convert LinqExtensionRegistration to readonly struct
1 parent 7865a54 commit 355c1da

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Orm/Xtensive.Orm/Orm/Configuration/LinqExtensionRegistration.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,30 @@
44
// Created by: Denis Krjuchkov
55
// Created: 2011.10.27
66

7-
using System;
87
using System.Linq.Expressions;
98
using System.Reflection;
10-
using Xtensive.Core;
11-
129

1310
namespace Xtensive.Orm.Configuration
1411
{
1512
/// <summary>
1613
/// Registration entry for LINQ extension.
1714
/// </summary>
18-
public sealed class LinqExtensionRegistration
15+
public readonly struct LinqExtensionRegistration
1916
{
2017
/// <summary>
2118
/// Gets member this extension is intended for.
2219
/// </summary>
23-
public MemberInfo Member { get; private set; }
20+
public MemberInfo Member { get; }
2421

2522
/// <summary>
2623
/// Gets substitution that is performed when LINQ translator encouters <see cref="Member"/> access.
2724
/// </summary>
28-
public LambdaExpression Substitution { get; private set; }
25+
public LambdaExpression Substitution { get; }
2926

3027
/// <summary>
3128
/// Gets action that is performed when LINQ translator encouters <see cref="Member"/> access.
3229
/// </summary>
33-
public Func<MemberInfo, Expression, Expression[], Expression> Compiler { get; private set; }
30+
public Func<MemberInfo, Expression, Expression[], Expression> Compiler { get; }
3431

3532

3633
// Constructors
@@ -63,4 +60,4 @@ public LinqExtensionRegistration(MemberInfo member, Func<MemberInfo, Expression,
6360
Compiler = compiler;
6461
}
6562
}
66-
}
63+
}

0 commit comments

Comments
 (0)