Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
NeVeSpl committed May 13, 2024
1 parent ef2a0cb commit 4d09c1a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Autodesk.Revit.DB;
using RevitDBExplorer.Domain.DataModel.Accessors;
using RevitDBExplorer.Domain.DataModel.Members.Accessors;
using RevitDBExplorer.Domain.DataModel.Members.Internals;
using RevitDBExplorer.Domain.DataModel.ValueContainers.Base;

// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
using System.Linq.Expressions;
using System.Reflection;
using RevitDBExplorer.Domain.DataModel.Accessors;
using RevitDBExplorer.Domain.DataModel.MemberAccessors;
using RevitDBExplorer.Domain.DataModel.Members.Accessors;

// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md

namespace RevitDBExplorer.Domain.DataModel.MemberAccessors
namespace RevitDBExplorer.Domain.DataModel.Members.Internals
{
internal interface IGenericFactory
{
Expand Down Expand Up @@ -47,7 +49,7 @@ public static IGenericFactory2 GetInstance(Type snoopedObjectType, Type returnTy
if (!returnTypeCache.TryGetValue(returnType, out var factory))
{
var closedType = typeof(GenericFactory2<,>).MakeGenericType(new Type[] { snoopedObjectType, returnType });
factory = Activator.CreateInstance(closedType) as IGenericFactory2;
factory = Activator.CreateInstance(closedType) as IGenericFactory2;
returnTypeCache[returnType] = factory;
}

Expand Down Expand Up @@ -95,11 +97,11 @@ public Func<TSnoopedObjectType, TParamType, TReturnType> CreateLambdaInternalWit
public Func<object, object> CreateCompiledLambda(MethodInfo getMethod)
{
var lambda = CreateLambda(getMethod);
return (object input) => { return lambda((TSnoopedObjectType)input); };
return (input) => { return lambda((TSnoopedObjectType)input); };
}

public IAccessor CreateMemberAccessorByRefCompiled(MethodInfo getMethod)
{
{
var func = CreateLambda(getMethod);
var accessor = new MemberAccessorByRefCompiled<TSnoopedObjectType, TReturnType>(getMethod, func);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using RevitDBExplorer.Domain.DataModel.Accessors;
using RevitDBExplorer.Domain.DataModel.MemberAccessors;
using RevitDBExplorer.Domain.DataModel.Members.Accessors;
using RevitDBExplorer.Domain.DataModel.Members.Internals;


// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Reflection;
using RevitDBExplorer.Domain.DataModel.MemberAccessors;
using RevitDBExplorer.Domain.DataModel.Members.Internals;

// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md

Expand Down

0 comments on commit 4d09c1a

Please sign in to comment.