diff --git a/Orm/Xtensive.Orm/Orm/Configuration/LinqExtensionRegistration.cs b/Orm/Xtensive.Orm/Orm/Configuration/LinqExtensionRegistration.cs
index 5c0456c1d..08de1b4f3 100644
--- a/Orm/Xtensive.Orm/Orm/Configuration/LinqExtensionRegistration.cs
+++ b/Orm/Xtensive.Orm/Orm/Configuration/LinqExtensionRegistration.cs
@@ -4,33 +4,30 @@
// Created by: Denis Krjuchkov
// Created: 2011.10.27
-using System;
using System.Linq.Expressions;
using System.Reflection;
-using Xtensive.Core;
-
namespace Xtensive.Orm.Configuration
{
///
/// Registration entry for LINQ extension.
///
- public sealed class LinqExtensionRegistration
+ public readonly struct LinqExtensionRegistration
{
///
/// Gets member this extension is intended for.
///
- public MemberInfo Member { get; private set; }
+ public MemberInfo Member { get; }
///
/// Gets substitution that is performed when LINQ translator encouters access.
///
- public LambdaExpression Substitution { get; private set; }
+ public LambdaExpression Substitution { get; }
///
/// Gets action that is performed when LINQ translator encouters access.
///
- public Func Compiler { get; private set; }
+ public Func Compiler { get; }
// Constructors
@@ -63,4 +60,4 @@ public LinqExtensionRegistration(MemberInfo member, Func : LockableBase, IMemberCompiler
private readonly Module module;
private readonly int metadataToken;
- public bool Equals(CompilerKey other) => metadataToken == other.metadataToken
- && (ReferenceEquals(module, other.module) || module == other.module);
+ public bool Equals(CompilerKey other) => metadataToken == other.metadataToken && module == other.module;
public override bool Equals(object obj) => obj is CompilerKey other && Equals(other);