Skip to content

Commit

Permalink
0.2.11
Browse files Browse the repository at this point in the history
removed large data
updated LibBase extension
  • Loading branch information
avmaisak committed Nov 19, 2019
1 parent 58375ff commit cc83030
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
16 changes: 3 additions & 13 deletions src/Gcode.Utils/Common/ReflectionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ public static List<KeyValuePair<string, string>> GetProperties(this object item,

var type = item.GetType();
var props = type.GetProperties();
if (props.Length == 0)
{
return result;
}
if (props.Length == 0) return result;

var propertiesOrdered =
(from property in type.GetProperties()
Expand All @@ -36,15 +33,8 @@ where Attribute.IsDefined(property, typeof(OrderAttribute))

var propResult = new List<PropertyInfo>();

if (propertiesOrdered.Any())
{
propResult.AddRange(propertiesOrdered);
}

if (propertiesUnordered.Any())
{
propResult.AddRange(propertiesUnordered);
}
if (propertiesOrdered.Any()) propResult.AddRange(propertiesOrdered);
if (propertiesUnordered.Any()) propResult.AddRange(propertiesUnordered);

result.AddRange(
from pi in propResult
Expand Down
8 changes: 4 additions & 4 deletions src/Gcode.Utils/Gcode.Utils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<PackageTags>gcode 3d-printing reprap reprap-3d-printer marlin marlin-firmware repitier repitier-firmware json json-parsing gcode-json cura kisslicer slic3r simplify3d</PackageTags>
<RepositoryType>git</RepositoryType>
<Copyright>Anton Maisak</Copyright>
<AssemblyVersion>0.2.0.9</AssemblyVersion>
<AssemblyVersion>0.2.0.11</AssemblyVersion>
<PackageReleaseNotes></PackageReleaseNotes>
<Version>0.2.10</Version>
<FileVersion>0.2.0.9</FileVersion>
<Version>0.2.11</Version>
<FileVersion>0.2.0.11</FileVersion>
<PackageIconUrl>https://raw.githubusercontent.com/avmaisak/Gcode/master/misc/design/logo/logo.png</PackageIconUrl>
</PropertyGroup>

Expand All @@ -35,7 +35,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="LibBase" Version="1.0.5" />
<PackageReference Include="LibBase" Version="1.0.6" />
</ItemGroup>

</Project>

0 comments on commit cc83030

Please sign in to comment.