Permalink
Browse files

WIP renew project structure

  • Loading branch information...
1 parent 63a146f commit f220f2bd33276ff0b318c4158a25633b8daed51b @neuecc committed Oct 18, 2016
Showing with 12,282 additions and 1,621 deletions.
  1. +3 −0 .gitignore
  2. +0 −11 ZeroFormatter.Interfaces/Class1.cs
  3. +0 −30 ZeroFormatter.Interfaces/Properties/AssemblyInfo.cs
  4. +0 −52 ZeroFormatter.Interfaces/ZeroFormatter.Interfaces.csproj
  5. +99 −13 ZeroFormatter.sln
  6. +2 −1 global.json
  7. +52 −0 sandbox/Sandbox.DotNetCore/Program.cs
  8. +19 −0 sandbox/Sandbox.DotNetCore/Properties/AssemblyInfo.cs
  9. +21 −0 sandbox/Sandbox.DotNetCore/Sandbox.DotNetCore.xproj
  10. +20 −0 sandbox/Sandbox.DotNetCore/project.json
  11. +6,654 −0 sandbox/Sandbox.DotNetCore/project.lock.json
  12. 0 {src → sandbox}/Sandbox/App.config
  13. +33 −1 {src → sandbox}/Sandbox/Program.cs
  14. 0 {src → sandbox}/Sandbox/Properties/AssemblyInfo.cs
  15. +15 −1 {src → sandbox}/Sandbox/Sandbox.csproj
  16. +10 −0 src/ZeroFormatter.CodeGenerator/ZeroFormatter.CodeGenerator.csproj
  17. +4 −2 src/ZeroFormatter.DotNetCore/Formatters/EnumFormatter.cs
  18. +3 −1 src/ZeroFormatter.DotNetCore/Formatters/EnumFormatter.tt
  19. +3 −4 src/ZeroFormatter.DotNetCore/project.json
  20. +21 −0 src/ZeroFormatter.DotNetCore2/ZeroFormatter.DotNetCore2.xproj
  21. +24 −0 src/ZeroFormatter.DotNetCore2/project.json
  22. +4,046 −0 src/ZeroFormatter.DotNetCore2/project.lock.json
  23. +19 −0 src/ZeroFormatter.Interfaces.DotNetCore/ZeroFormatter.Interfaces.DotNetCore.xproj
  24. +17 −0 src/ZeroFormatter.Interfaces.DotNetCore/project.json
  25. +162 −0 src/ZeroFormatter.Interfaces.DotNetCore/project.lock.json
  26. +27 −0 src/ZeroFormatter.Interfaces/Attributes.cs
  27. +0 −11 src/ZeroFormatter.Interfaces/Class1.cs
  28. +495 −0 src/ZeroFormatter.Interfaces/KeyTuple.cs
  29. +9 −4 src/ZeroFormatter.Interfaces/Properties/AssemblyInfo.cs
  30. +17 −12 src/ZeroFormatter.Interfaces/ZeroFormatter.Interfaces.csproj
  31. +0 −134 src/ZeroFormatter.Tests/ShortAttrTest.cs
  32. +0 −56 src/ZeroFormatter/Attributes.cs
  33. +7 −3 src/ZeroFormatter/Comparers/EnumEqualityComparer.cs
  34. +299 −0 src/ZeroFormatter/Comparers/KeyTupleEqualityComparer.cs
  35. +44 −5 src/ZeroFormatter/Comparers/ZeroFormatterEqualityComparer.cs
  36. +5 −5 src/ZeroFormatter/Formatters/DictionaryFormatter.cs
  37. +12 −8 src/ZeroFormatter/Formatters/DynamicObjectFormatter.cs
  38. +38 −34 src/ZeroFormatter/Formatters/EnumFormatter.cs
  39. +9 −5 src/ZeroFormatter/Formatters/EnumFormatter.tt
  40. +14 −1 src/ZeroFormatter/Formatters/Formatter.cs
  41. +5 −4 src/ZeroFormatter/Formatters/ListFormatter.cs
  42. +1 −6 src/ZeroFormatter/Formatters/LookupFormatter.cs
  43. +1 −6 src/ZeroFormatter/Formatters/StringFormatter.cs
  44. +0 −4 src/ZeroFormatter/Internal/HashHelper.cs
  45. +1 −7 src/ZeroFormatter/Internal/SR.cs
  46. +1 −5 src/ZeroFormatter/Internal/StringEncoding.cs
  47. +0 −1,172 src/ZeroFormatter/KeyTuple.cs
  48. +4 −1 src/ZeroFormatter/Segments/DictionarySegment.cs
  49. +4 −0 src/ZeroFormatter/Segments/DynamicObjectSegment.cs
  50. +0 −4 src/ZeroFormatter/Segments/IZeroFormatterSegment.cs
  51. +4 −1 src/ZeroFormatter/Segments/ListSegment.cs
  52. +20 −9 src/ZeroFormatter/ZeroFormatter.csproj
  53. +9 −0 src/ZeroFormatterAnalyzer.Vsix/ZeroFormatterAnalyzer.Vsix.csproj
  54. +9 −0 src/ZeroFormatterAnalyzer/ZeroFormatterAnalyzer.csproj
  55. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ChainingAssertion.Ext.cs
  56. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ChainingAssertion.Xunit.cs
  57. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/DictionaryFormatterTest.cs
  58. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/DictionarySegmentTest.cs
  59. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/FormatterTest.cs
  60. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/FormatterVerifyRule.cs
  61. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/KeyTupleFormatterTest.cs
  62. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ListFormatterTest.cs
  63. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ListSegmentTest.cs
  64. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/LookupSegmentTest.cs
  65. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/NullCheckTest.cs
  66. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ObjectFormatterTest.cs
  67. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/Properties/AssemblyInfo.cs
  68. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ReadOnlyTest.cs
  69. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/RecursiveCheck.cs
  70. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ShortAttrTest.cs
  71. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/StringSegmentTest.cs
  72. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/ZeroFormatter.DotNetCore.Tests.xproj
  73. +5 −5 {test → tests}/ZeroFormatter.DotNetCore.Tests/project.json
  74. 0 {test → tests}/ZeroFormatter.DotNetCore.Tests/project.lock.json
  75. 0 {src → tests}/ZeroFormatter.Tests/ChainingAssertion.Ext.cs
  76. 0 {src → tests}/ZeroFormatter.Tests/ChainingAssertion.MSTest.cs
  77. 0 {src → tests}/ZeroFormatter.Tests/DictionaryFormatterTest.cs
  78. 0 {src → tests}/ZeroFormatter.Tests/DictionarySegmentTest.cs
  79. 0 {src → tests}/ZeroFormatter.Tests/FormatterTest.cs
  80. 0 {src → tests}/ZeroFormatter.Tests/FormatterVerifyRule.cs
  81. 0 {src → tests}/ZeroFormatter.Tests/KeyTupleFormatterTest.cs
  82. 0 {src → tests}/ZeroFormatter.Tests/ListFormatterTest.cs
  83. 0 {src → tests}/ZeroFormatter.Tests/ListSegmentTest.cs
  84. 0 {src → tests}/ZeroFormatter.Tests/LookupSegmentTest.cs
  85. 0 {src → tests}/ZeroFormatter.Tests/NullCheckTest.cs
  86. 0 {src → tests}/ZeroFormatter.Tests/ObjectFormatterTest.cs
  87. 0 {src → tests}/ZeroFormatter.Tests/Properties/AssemblyInfo.cs
  88. +1 −1 {src → tests}/ZeroFormatter.Tests/ReadOnlyTest.cs
  89. 0 {src → tests}/ZeroFormatter.Tests/RecursiveCheck.cs
  90. 0 {src → tests}/ZeroFormatter.Tests/StringSegmentTest.cs
  91. +14 −2 {src → tests}/ZeroFormatter.Tests/ZeroFormatter.Tests.csproj
  92. 0 {src → tests}/ZeroFormatter.Tests/packages.config
View
@@ -108,3 +108,6 @@ Backup*/
UpgradeLog*.XML
.vs/config/applicationhost.config
.vs/restore.dg
+
+# Unity
+tests/ZeroFormatter.UnityTests/*
@@ -1,11 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace ZeroFormatter.Interfaces
-{
- public class Class1
- {
- }
-}
@@ -1,30 +0,0 @@
-using System.Resources;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("ZeroFormatter.Interfaces")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("ZeroFormatter.Interfaces")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: NeutralResourcesLanguage("en")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{891323e5-a34e-451c-af18-fca4b18abe6b}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>ZeroFormatter.Interfaces</RootNamespace>
- <AssemblyName>ZeroFormatter.Interfaces</AssemblyName>
- <DefaultLanguage>en-US</DefaultLanguage>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <!-- A reference to the entire .NET Framework is automatically included -->
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Class1.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-
-</Project>
View
@@ -3,61 +3,147 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7FB78A03-3E9B-4E43-9A47-77D868ACCFD9}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_others", "_others", "{7FB78A03-3E9B-4E43-9A47-77D868ACCFD9}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
+ LICENSE = LICENSE
+ README.md = README.md
EndProjectSection
EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ZeroFormatter.DotNetCore.Tests", "test\ZeroFormatter.DotNetCore.Tests\ZeroFormatter.DotNetCore.Tests.xproj", "{0763A385-4EE0-45F3-8B20-0B0A71C74870}"
-EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ZeroFormatter.DotNetCore", "src\ZeroFormatter.DotNetCore\ZeroFormatter.DotNetCore.xproj", "{C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatter", "src\ZeroFormatter\ZeroFormatter.csproj", "{82049AFE-0913-4FA4-B924-AD5354952154}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatter.Tests", "src\ZeroFormatter.Tests\ZeroFormatter.Tests.csproj", "{419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatterAnalyzer", "src\ZeroFormatterAnalyzer\ZeroFormatterAnalyzer.csproj", "{A15F092D-C6D9-4938-B288-7A8B6CF39A53}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatterAnalyzer.Vsix", "src\ZeroFormatterAnalyzer.Vsix\ZeroFormatterAnalyzer.Vsix.csproj", "{C039E946-455C-478B-8FA3-733F9E0DF1BD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatter.CodeGenerator", "src\ZeroFormatter.CodeGenerator\ZeroFormatter.CodeGenerator.csproj", "{00F36123-EEEC-4428-89BD-848FC968B520}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatter.Interfaces", "src\ZeroFormatter.Interfaces\ZeroFormatter.Interfaces.csproj", "{C051F473-427F-4062-94FB-CAE3FA460FC8}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2CE059FD-1C8D-49B7-851E-4A5B385F63D5}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sandbox", "sandbox", "{F29BFD74-5462-485D-851E-69B683F08C84}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{4A106901-0A11-4D37-B5E6-D4DB7A43C41C}"
+EndProject
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ZeroFormatter.DotNetCore.Tests", "tests\ZeroFormatter.DotNetCore.Tests\ZeroFormatter.DotNetCore.Tests.xproj", "{0763A385-4EE0-45F3-8B20-0B0A71C74870}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatter.Tests", "tests\ZeroFormatter.Tests\ZeroFormatter.Tests.csproj", "{419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZeroFormatter.UnityTests.CSharp", "tests\ZeroFormatter.UnityTests\ZeroFormatter.UnityTests.CSharp.csproj", "{5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandbox", "sandbox\Sandbox\Sandbox.csproj", "{C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}"
+EndProject
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ZeroFormatter.Interfaces.DotNetCore", "src\ZeroFormatter.Interfaces.DotNetCore\ZeroFormatter.Interfaces.DotNetCore.xproj", "{E486CA99-A9FC-4B7D-9FB5-38A53C995C87}"
+EndProject
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ZeroFormatter.DotNetCore2", "src\ZeroFormatter.DotNetCore2\ZeroFormatter.DotNetCore2.xproj", "{C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}"
+EndProject
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Sandbox.DotNetCore", "sandbox\Sandbox.DotNetCore\Sandbox.DotNetCore.xproj", "{105EFFE6-8855-4C8A-B20F-86C9E0AD5842}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
+ Unity|Any CPU = Unity|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Release|Any CPU.Build.0 = Release|Any CPU
{C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D}.Unity|Any CPU.Build.0 = Unity|Any CPU
{82049AFE-0913-4FA4-B924-AD5354952154}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82049AFE-0913-4FA4-B924-AD5354952154}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82049AFE-0913-4FA4-B924-AD5354952154}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82049AFE-0913-4FA4-B924-AD5354952154}.Release|Any CPU.Build.0 = Release|Any CPU
- {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {82049AFE-0913-4FA4-B924-AD5354952154}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {82049AFE-0913-4FA4-B924-AD5354952154}.Unity|Any CPU.Build.0 = Unity|Any CPU
{A15F092D-C6D9-4938-B288-7A8B6CF39A53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A15F092D-C6D9-4938-B288-7A8B6CF39A53}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A15F092D-C6D9-4938-B288-7A8B6CF39A53}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A15F092D-C6D9-4938-B288-7A8B6CF39A53}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A15F092D-C6D9-4938-B288-7A8B6CF39A53}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {A15F092D-C6D9-4938-B288-7A8B6CF39A53}.Unity|Any CPU.Build.0 = Unity|Any CPU
{C039E946-455C-478B-8FA3-733F9E0DF1BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C039E946-455C-478B-8FA3-733F9E0DF1BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C039E946-455C-478B-8FA3-733F9E0DF1BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C039E946-455C-478B-8FA3-733F9E0DF1BD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C039E946-455C-478B-8FA3-733F9E0DF1BD}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {C039E946-455C-478B-8FA3-733F9E0DF1BD}.Unity|Any CPU.Build.0 = Unity|Any CPU
{00F36123-EEEC-4428-89BD-848FC968B520}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00F36123-EEEC-4428-89BD-848FC968B520}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00F36123-EEEC-4428-89BD-848FC968B520}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00F36123-EEEC-4428-89BD-848FC968B520}.Release|Any CPU.Build.0 = Release|Any CPU
+ {00F36123-EEEC-4428-89BD-848FC968B520}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {00F36123-EEEC-4428-89BD-848FC968B520}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {C051F473-427F-4062-94FB-CAE3FA460FC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C051F473-427F-4062-94FB-CAE3FA460FC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C051F473-427F-4062-94FB-CAE3FA460FC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C051F473-427F-4062-94FB-CAE3FA460FC8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C051F473-427F-4062-94FB-CAE3FA460FC8}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {C051F473-427F-4062-94FB-CAE3FA460FC8}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}.Unity|Any CPU.ActiveCfg = Unity|Any CPU
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB}.Unity|Any CPU.Build.0 = Unity|Any CPU
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842}.Release|Any CPU.Build.0 = Release|Any CPU
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842}.Unity|Any CPU.ActiveCfg = Debug|Any CPU
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842}.Unity|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {C8B036BD-4FA3-4BE2-A2E5-F4FCAED3C64D} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {82049AFE-0913-4FA4-B924-AD5354952154} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {A15F092D-C6D9-4938-B288-7A8B6CF39A53} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {C039E946-455C-478B-8FA3-733F9E0DF1BD} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {00F36123-EEEC-4428-89BD-848FC968B520} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {C051F473-427F-4062-94FB-CAE3FA460FC8} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {0763A385-4EE0-45F3-8B20-0B0A71C74870} = {4A106901-0A11-4D37-B5E6-D4DB7A43C41C}
+ {419EF6DC-7A15-4B50-88A4-E2AEDB73FA7F} = {4A106901-0A11-4D37-B5E6-D4DB7A43C41C}
+ {5B7112AD-AFC5-CE09-8B76-781C0B4AA0F6} = {4A106901-0A11-4D37-B5E6-D4DB7A43C41C}
+ {C8BA4A0F-5F66-442A-9516-D3E94C1E26F3} = {F29BFD74-5462-485D-851E-69B683F08C84}
+ {E486CA99-A9FC-4B7D-9FB5-38A53C995C87} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {C6B8E59E-ECF2-4AE9-A8F7-02E9BDAD57EB} = {2CE059FD-1C8D-49B7-851E-4A5B385F63D5}
+ {105EFFE6-8855-4C8A-B20F-86C9E0AD5842} = {F29BFD74-5462-485D-851E-69B683F08C84}
+ EndGlobalSection
EndGlobal
View
@@ -1,6 +1,7 @@
{
"projects": [
"src",
- "test"
+ "tests",
+ "sandbox"
]
}
@@ -0,0 +1,52 @@
+using System;
+using System.Reflection;
+using System.Collections.Generic;
+using System.Linq;
+using System.Linq.Expressions;
+using System.Threading.Tasks;
+
+namespace Sandbox.DotNetCore
+{
+ public enum MyEnum
+ {
+ Furit, Alle
+ }
+
+ public class Program
+ {
+ static int IntGetHashCode(int x) { return x; }
+ static Int32 Identity(Int32 x) { return x; }
+
+ static void Hoge<T>(T t)
+ {
+
+ Func<int, int> getHash = IntGetHashCode;
+
+//
+ var aaa = getHash.GetMethodInfo().CreateDelegate(typeof(Func<T, int>));
+ //var GetHashCodeDelegate = Expression.Lambda<Func<T, int>>(Expression.Call(getHash.GetMethodInfo())).Compile();
+
+
+
+ Func<Int32, Int32> identity = Identity;
+ var serializeCast = identity.GetMethodInfo().CreateDelegate(typeof(Func<T, Int32>)) as Func<T, Int32>;
+
+
+
+ Console.WriteLine(serializeCast(t));
+
+ }
+
+ public static void Main(string[] args)
+ {
+ /*
+ var e = ZeroFormatter.DotNetCore.Comparers.ZeroFormatterEqualityComparer<MyEnum>.Default;
+
+ Console.WriteLine(e.GetType().Name);
+ */
+
+ Hoge<MyEnum>(MyEnum.Alle);
+
+ }
+ }
+}
@@ -0,0 +1,19 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Sandbox.DotNetCore")]
+[assembly: AssemblyTrademark("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("105effe6-8855-4c8a-b20f-86c9e0ad5842")]
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ </PropertyGroup>
+
+ <Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>105effe6-8855-4c8a-b20f-86c9e0ad5842</ProjectGuid>
+ <RootNamespace>Sandbox.DotNetCore</RootNamespace>
+ <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
+ <OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <SchemaVersion>2.0</SchemaVersion>
+ </PropertyGroup>
+ <Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
+</Project>
@@ -0,0 +1,20 @@
+{
+ "version": "1.0.0-*",
+ "buildOptions": {
+ "emitEntryPoint": true
+ },
+
+ "dependencies": {
+ "Microsoft.NETCore.App": {
+ "type": "platform",
+ "version": "1.0.0"
+ },
+ "ZeroFormatter.DotNetCore": "1.0.0-*"
+ },
+
+ "frameworks": {
+ "netcoreapp1.0": {
+ "imports": "dnxcore50"
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit f220f2b

Please sign in to comment.