Skip to content

Commit

Permalink
Merge branch 'moh-hassan-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
davideicardi committed Jan 15, 2019
2 parents f75fc3b + 40f045c commit 0b8c0c4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![NuGet version](https://badge.fury.io/nu/DynamicExpresso.Core.svg)](http://badge.fury.io/nu/DynamicExpresso.Core)
![build master](https://davideicardi.visualstudio.com/_apis/public/build/definitions/d6fd0002-6d51-417b-928e-27591379dfc4/4/badge)

Available platforms: .NET Core 2.0, .NET 4.6.1
Available platforms: .NET Core 2.0, .NET 4.5, .NET 4.6.1

Dynamic Expresso is an interpreter for simple C# statements written in .NET Standard 2.0.
Dynamic Expresso embeds its own parsing logic, really interprets C# statements by converting it to .NET lambda expressions or delegates.
Expand Down
43 changes: 22 additions & 21 deletions src/DynamicExpresso.Core/DynamicExpresso.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<RootNamespace>DynamicExpresso</RootNamespace>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net461;net45</TargetFrameworks>
<RootNamespace>DynamicExpresso</RootNamespace>

<Authors>Davide Icardi</Authors>
<Company>davideicardi.com</Company>
<Description>C# expression interpreter/evaluator</Description>
<Copyright>Davide Icardi</Copyright>
<PackageTags>dynamic expresso expression linq eval</PackageTags>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IncludeSymbols>True</IncludeSymbols>
<IncludeSource>True</IncludeSource>
<PackageProjectUrl>https://github.com/davideicardi/DynamicExpresso</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/davideicardi/DynamicExpresso#license</PackageLicenseUrl>
<RepositoryUrl>https://github.com/davideicardi/DynamicExpresso.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<VersionPrefix>0.0.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>
<Authors>Davide Icardi</Authors>
<Company>davideicardi.com</Company>
<Description>C# expression interpreter/evaluator</Description>
<Copyright>Davide Icardi</Copyright>
<PackageTags>dynamic expresso expression linq eval</PackageTags>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IncludeSymbols>True</IncludeSymbols>
<IncludeSource>True</IncludeSource>
<PackageProjectUrl>https://github.com/davideicardi/DynamicExpresso</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/davideicardi/DynamicExpresso#license</PackageLicenseUrl>
<RepositoryUrl>https://github.com/davideicardi/DynamicExpresso.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<VersionPrefix>0.0.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions test/DynamicExpresso.UnitTest/DynamicExpresso.UnitTest.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp2.0;net461;net45</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -11,8 +11,8 @@
<PackageReference Include="NUnit" Version="3.9.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

Expand Down
1 change: 0 additions & 1 deletion test/DynamicExpresso.UnitTest/MemberInvocationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public void Method_Property_Field_basic_test()
public void Null_conditional_property()
{
var target = new Interpreter().SetVariable("x", null, typeof(MyTestService));
MyTestService x = null;
Assert.IsNull(target.Eval("x?.AProperty"));
}

Expand Down

0 comments on commit 0b8c0c4

Please sign in to comment.