Skip to content

Commit

Permalink
Merge branch 'feature/netstandard'
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Matos Silva committed Feb 25, 2017
2 parents 59dcfc6 + f7ef8e6 commit ce561b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
4 changes: 3 additions & 1 deletion src/FlatMapper/DynamicMethodCompiler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;

Expand All @@ -18,7 +19,8 @@ public static class DynamicMethodCompiler
internal static Func<T> CreateInstantiateObjectHandler<T>()
{
Type type = typeof (T);
ConstructorInfo constructorInfo = type.GetConstructor(new Type[0]);
//Try to find a default parameterless constructor
ConstructorInfo constructorInfo = type.GetTypeInfo().DeclaredConstructors.FirstOrDefault(c => c.GetParameters().Length == 0);

if (constructorInfo == null)
{
Expand Down
29 changes: 6 additions & 23 deletions src/FlatMapper/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.8.0",
"version": "0.9.0",
"description": "A library to import and export data from plain text files in a Linq compatible way",
"authors": [ "kappy" ],
"packOptions": {
Expand All @@ -8,30 +8,13 @@
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0"
},
"frameworks": {
"net45": {
"netstandard1.1": {
"dependencies": {
}
},
"net35": {
"dependencies": {
}
},
"dnx451": {
"dependencies": {
}
},
"dotnet5.1": {
"dependencies": {
"Microsoft.CSharp": "4.0.0",
"System.Collections": "4.0.10",
"System.Linq": "4.0.0",
"System.Runtime": "4.0.20",
"System.Threading": "4.0.10",
"System.Runtime.Extensions": "4.0.10",
"System.Reflection.TypeExtensions": "4.0.0",
"System.Reflection.Emit.ILGeneration": "4.0.0",
"System.Reflection.Emit.Lightweight": "4.0.0"
"NETStandard.Library": "1.6.0"
}
}
},
"dependencies": {
"System.Reflection.Emit.Lightweight": "4.3.0"
}
}

0 comments on commit ce561b7

Please sign in to comment.