Skip to content

Commit

Permalink
1.4.0-rc2 preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvk committed Sep 2, 2017
1 parent 0832322 commit 41c8306
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Blocks/nuget/CodeJam.Blocks.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>CodeJam.Blocks</id>
<version>1.4.0-rc1</version>
<version>1.4.0-rc2</version>
<title>CodeJam.Blocks Library</title>
<authors>Andrew Koryavchenko, ig-sinicyn, Igor Tkachev, rameel</authors>
<licenseUrl>https://github.com/rsdn/CodeJam/blob/master/LICENSE</licenseUrl>
Expand All @@ -13,7 +13,7 @@
<copyright>RSDN, 2017</copyright>
<tags>mapper services csv</tags>
<dependencies>
<dependency id="CodeJam" version="1.4.0-rc1" />
<dependency id="CodeJam" version="1.4.0-rc2" />
</dependencies>
</metadata>
<files>
Expand Down
2 changes: 1 addition & 1 deletion Blocks/nuget/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CodeJam.Blocks 1.4.0-rc1 Release Notes
CodeJam.Blocks 1.4.0-rc2 Release Notes
----------------------------------------

What's new in 1.4.0-rc1
Expand Down
18 changes: 6 additions & 12 deletions Blocks/src/Mapping/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,12 @@ public static T ChangeTypeTo<T>(object value, MappingSchema mappingSchema = null
return l(value);
}

internal static bool IsDefaultValuePlaceHolder(Expression expr)
{
var me = expr as MemberExpression;

if (me != null)
{
if (me.Member.Name == "Value" && me.Member.DeclaringType?.IsGenericType == true)
return me.Member.DeclaringType.GetGenericTypeDefinition() == typeof(DefaultValue<>);
}

return expr is DefaultValueExpression;
}
internal static bool IsDefaultValuePlaceHolder(Expression expr) =>
expr is MemberExpression me
&& me.Member.Name == "Value"
&& me.Member.DeclaringType?.IsGenericType == true
? me.Member.DeclaringType.GetGenericTypeDefinition() == typeof(DefaultValue<>)
: expr is DefaultValueExpression;

// public static Type GetDefaultMappingFromEnumType(MappingSchema mappingSchema, Type enumType)
// => ConvertBuilder.GetDefaultMappingFromEnumType(mappingSchema, enumType);
Expand Down
2 changes: 1 addition & 1 deletion Main/nuget/CodeJam.Main.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>CodeJam</id>
<version>1.4.0-rc1</version>
<version>1.4.0-rc2</version>
<title>CodeJam .NET Library</title>
<authors>Andrew Koryavchenko, ig-sinicyn, Igor Tkachev, rameel</authors>
<licenseUrl>https://github.com/rsdn/CodeJam/blob/master/LICENSE</licenseUrl>
Expand Down
10 changes: 8 additions & 2 deletions Main/nuget/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
CodeJam 1.4.0-rc1 Release Notes
CodeJam 1.4.0-rc2 Release Notes
---------------------------------

What's new in 1.4.0-rc2
-----------------------
* ToLookupDictionary renamed to ToDictionary
* TaskHelper additional overloads
* Refactoring, fixes and code cleanup

What's new in 1.4.0-rc1
-------------------------
-----------------------
* PathHelpers + IoCode assertions
* EnumHelper.GetDisplayName/Description/both
* EnumHelper.IsDefined(string)
Expand Down
18 changes: 7 additions & 11 deletions Main/src/Ranges/[Boundaries]/RangeBoundaryFrom`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -517,19 +517,15 @@ public int CompareTo(T other) =>
[Pure]
int IComparable.CompareTo(object obj)
{
// ReSharper disable once MergeCastWithTypeCheck
if (obj is RangeBoundaryFrom<T>)
switch (obj)
{
return CompareTo((RangeBoundaryFrom<T>)obj);
}

// ReSharper disable once MergeCastWithTypeCheck
if (obj is RangeBoundaryTo<T>)
{
return CompareTo((RangeBoundaryTo<T>)obj);
case RangeBoundaryFrom<T> rbf:
return CompareTo(rbf);
case RangeBoundaryTo<T> rbt:
return CompareTo(rbt);
default:
return CompareTo((T)obj);
}

return CompareTo((T)obj);
}
#endregion

Expand Down

0 comments on commit 41c8306

Please sign in to comment.