Skip to content

Commit 6342b37

Browse files
committed
allow null compiler
1 parent ae6a8fd commit 6342b37

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Orm/Xtensive.Orm/Orm/Linq/MemberCompilation/Interfaces/IMemberCompilerProvider{T}.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,11 @@ public interface IMemberCompilerProvider<T> : IMemberCompilerProvider
3434
/// <param name="conflictHandlingMethod">Conflict handling method.</param>
3535
void RegisterCompilers(IEnumerable<KeyValuePair<MemberInfo, Func<MemberInfo, T, T[], T>>> compilerDefinitions, ConflictHandlingMethod conflictHandlingMethod);
3636

37-
public readonly struct BoundCompiler
37+
public readonly struct BoundCompiler(Func<MemberInfo, T, T[], T> compiler, MemberInfo memberInfo)
3838
{
39-
private readonly Func<MemberInfo, T, T[], T> compiler;
40-
private readonly MemberInfo memberInfo;
41-
4239
public bool IsNull => compiler == null;
4340

4441
public T Invoke(T arg2, T[] arg3) => compiler(memberInfo, arg2, arg3);
45-
46-
public BoundCompiler(Func<MemberInfo, T, T[], T> compiler, MemberInfo memberInfo)
47-
{
48-
ArgumentNullException.ThrowIfNull(compiler);
49-
this.compiler = compiler;
50-
this.memberInfo = memberInfo;
51-
}
5242
}
5343

5444
/// <summary>

0 commit comments

Comments
 (0)