Permalink
Browse files

more register

  • Loading branch information...
1 parent 074a174 commit ae67601d9ac60a047794a2948fbf904f61e71b03 @neuecc committed Jan 8, 2017
@@ -402,7 +402,7 @@
},
"libraries": {
"Microsoft.NETCore.Platforms/1.0.1": {
- "sha512": "ziXXtSzmsPhItCe644JETYUqj9Z/R1Zxp8heAox7SI2BYulOpf2SILvPPklKF7oWCXXM2Nwnn/O0ulyPIf8FRA==",
+ "sha512": "2G6OjjJzwBfNOO8myRV/nFrbTw5iA+DEm0N+qUqhrOmaVtn4pC77h38I1jsXGw5VH55+dPfQsqHD0We9sCl9FQ==",
"type": "package",
"path": "Microsoft.NETCore.Platforms/1.0.1",
"files": [
@@ -415,7 +415,7 @@
]
},
"Microsoft.NETCore.Targets/1.0.1": {
- "sha512": "rBHoVRfvPU6+tqbQK3gPm+19MSCgi5N09g2j/FP+BtHWXIVE9Ta9ShVwZ4IoKa4amH25Ej2RljPMDCAMCvmZxw==",
+ "sha512": "rkn+fKobF/cbWfnnfBOQHKVKIOpxMZBvlSHkqDWgBpwGDcLRduvs3D9OLGeV6GWGvVwNlVi2CBbTjuPmtHvyNw==",
"type": "package",
"path": "Microsoft.NETCore.Targets/1.0.1",
"files": [
@@ -428,7 +428,7 @@
]
},
"System.Collections/4.0.11": {
- "sha512": "YMxntjqEwv32jseVYvtAEjyjr3C94WpAJ29agm84PYMETx3zhQtHiiSWaelj4ad2S7DpGDNQkaEvdU9oYtbhAw==",
+ "sha512": "YUJGz6eFKqS0V//mLt25vFGrrCvOnsXjlvFQs+KimpwNxug9x0Pzy4PlFMU3Q2IzqAa9G2L4LsK3+9vCBK7oTg==",
"type": "package",
"path": "System.Collections/4.0.11",
"files": [
@@ -494,7 +494,7 @@
]
},
"System.Collections.Concurrent/4.0.12": {
- "sha512": "WPDcgiF85scQSVKlCeL8WLNW9cYNt2eIgQYq8Al9BQ5E0ujJZWXaXuox7n4Ilkfjv4WlYjDNxLy9EWykC0oWsw==",
+ "sha512": "2gBcbb3drMLgxlI0fBfxMA31ec6AEyYCHygGse4vxceJan8mRIWeKJ24BFzN7+bi/NFTgdIgufzb94LWO5EERQ==",
"type": "package",
"path": "System.Collections.Concurrent/4.0.12",
"files": [
@@ -560,7 +560,7 @@
]
},
"System.Diagnostics.Debug/4.0.11": {
- "sha512": "fogoH0h20awj6DzfmU9Lq4E6Z4NWzdNuM3cxu1HbvFANStkykGiLjkDJZkzsEG/WisRaEDoGR/ZjUdoBRDdB8w==",
+ "sha512": "w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw==",
"type": "package",
"path": "System.Diagnostics.Debug/4.0.11",
"files": [
@@ -626,7 +626,7 @@
]
},
"System.Diagnostics.Tracing/4.1.0": {
- "sha512": "DDKkOTeAmJibX6+mgrQrcqYcxRQwupyxrGOksj5Q1yUa7xxTc/60bQHfDmTFg4G/yfL2ulUGJMoEsQsxqJqHWw==",
+ "sha512": "vDN1PoMZCkkdNjvZLql592oYJZgS7URcJzJ7bxeBgGtx5UtR5leNm49VmfHGqIffX4FKacHbI3H6UyNSHQknBg==",
"type": "package",
"path": "System.Diagnostics.Tracing/4.1.0",
"files": [
@@ -714,7 +714,7 @@
]
},
"System.Globalization/4.0.11": {
- "sha512": "+jZkiFdUGlI9/uYBPGnN3Rzy5WcxHRC2w18r1NYOXub8RrFBCrYUxs4IOGKgPxQXOoLot+8aNkxdJ5/XPpQ3Ow==",
+ "sha512": "B95h0YLEL2oSnwF/XjqSWKnwKOy/01VWkNlsCeMTFJLLabflpGV26nK164eRs5GiaRSBGpOxQ3pKoSnnyZN5pg==",
"type": "package",
"path": "System.Globalization/4.0.11",
"files": [
@@ -780,7 +780,7 @@
]
},
"System.IO/4.1.0": {
- "sha512": "RbGtdE3hSV9YGVSCidxsROvqAZki+94hn1/fLVLLwl/Cu8+fiZN07VQtxiSO8uP8SG24okhdntza5zXDZxMuQQ==",
+ "sha512": "3KlTJceQc3gnGIaHZ7UBZO26SHL1SHE4ddrmiwumFnId+CEHP+O8r386tZKaE6zlk5/mF8vifMBzHj9SaXN+mQ==",
"type": "package",
"path": "System.IO/4.1.0",
"files": [
@@ -859,7 +859,7 @@
]
},
"System.Linq/4.1.0": {
- "sha512": "pqPL9d731Cxd/mLhvvnh/14ZevhthdUUYhZxznZald7Bc6IvaHrr+09vGT5hheKNDjADkAax4PjITcS3SGPY7Q==",
+ "sha512": "bQ0iYFOQI0nuTnt+NQADns6ucV4DUvMdwN6CbkB1yj8i7arTGiTN5eok1kQwdnnNWSDZfIUySQY+J3d5KjWn0g==",
"type": "package",
"path": "System.Linq/4.1.0",
"files": [
@@ -929,7 +929,7 @@
]
},
"System.Linq.Expressions/4.1.0": {
- "sha512": "H1U+TDcUdzd5jiS/iPW+m3Kw0YzfC7ngeER/uM+ZzikLAJo6fSHBXliIYYMetC+i6D+TZs+cu3Rz7oDED2YVvw==",
+ "sha512": "I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==",
"type": "package",
"path": "System.Linq.Expressions/4.1.0",
"files": [
@@ -1011,7 +1011,7 @@
]
},
"System.ObjectModel/4.0.12": {
- "sha512": "XoVo1ZlvAEwUDO+3Lb6WQIxhAw2EivXtWUCOhbKpCfEL/2tcPhSdb3YewlK92ISg7CePCrr4AVGWlVqrwmcUQQ==",
+ "sha512": "tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==",
"type": "package",
"path": "System.ObjectModel/4.0.12",
"files": [
@@ -1079,7 +1079,7 @@
]
},
"System.Reflection/4.1.0": {
- "sha512": "F0P0/m+3F4/ttA+p+zssY0tXZyGCkCskNW78wTEWb6ulENsWgZq06vD62Jt0ZKVA3zmMwbhm31RWVrGfn/EUYg==",
+ "sha512": "JCKANJ0TI7kzoQzuwB/OoJANy1Lg338B6+JVacPl4TpUwi3cReg3nMLplMq2uqYfHFQpKIlHAUVAJlImZz/4ng==",
"type": "package",
"path": "System.Reflection/4.1.0",
"files": [
@@ -1158,7 +1158,7 @@
]
},
"System.Reflection.Emit/4.0.1": {
- "sha512": "Pttit86IGJ6QzuKzCGRv8UUcg3daTDUeNpPif5XG3cezDCdX2ZxsOTI0Yn6BOt6Mzzh3R06c2B5t7RgMEz0A0g==",
+ "sha512": "P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==",
"type": "package",
"path": "System.Reflection.Emit/4.0.1",
"files": [
@@ -1188,7 +1188,7 @@
]
},
"System.Reflection.Emit.ILGeneration/4.0.1": {
- "sha512": "zuuSnc6DWaJAFL39C+vxGE01bM0l048+ggV4sVBMk4l69sZwckVwcWbAgEmBwNEnVMY9gPAO0Lz8LDuzl/WVBg==",
+ "sha512": "Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==",
"type": "package",
"path": "System.Reflection.Emit.ILGeneration/4.0.1",
"files": [
@@ -1219,7 +1219,7 @@
]
},
"System.Reflection.Emit.Lightweight/4.0.1": {
- "sha512": "+KpJnBwqvaRzKp2Lyok8HJW83vwQmkKlAjDazFcz7e3Frihfdg9rfdbbT08FKiJgxhAuBIq+S8l5jtSzTYp6bg==",
+ "sha512": "sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==",
"type": "package",
"path": "System.Reflection.Emit.Lightweight/4.0.1",
"files": [
@@ -1250,7 +1250,7 @@
]
},
"System.Reflection.Extensions/4.0.1": {
- "sha512": "mFZwg8fwbfBDUn07o1Sa8ax/RuxT95SgG8KTfAdwxbOmLiB66mIlcOOLAmkLWxFLF+Y/cN+rQzL3KOI4sazpFg==",
+ "sha512": "GYrtRsZcMuHF3sbmRHfMYpvxZoIN2bQGrYGerUiWLEkqdEUQZhH3TRSaC/oI4wO0II1RKBPlpIa1TOMxIcOOzQ==",
"type": "package",
"path": "System.Reflection.Extensions/4.0.1",
"files": [
@@ -1305,7 +1305,7 @@
]
},
"System.Reflection.Primitives/4.0.1": {
- "sha512": "Tfw+FKwG8MXHzf9NmXb+aTmYBRB6NVy+3YlPqXIXJKkJcz6SKTMou3CUy8Yo3nYnnBBY/9FpVYASL7aXwmiGYA==",
+ "sha512": "4inTox4wTBaDhB7V3mPvp9XlCbeGYWVEM9/fXALd52vNEAVisc1BoVWQPuUuD0Ga//dNbA/WeMy9u9mzLxGTHQ==",
"type": "package",
"path": "System.Reflection.Primitives/4.0.1",
"files": [
@@ -1360,7 +1360,7 @@
]
},
"System.Reflection.TypeExtensions/4.1.0": {
- "sha512": "V4kH6clDMD+mrKNRPl8Hsunt7dS72gDnaV2mCsynH9CV++qQQ1oz1dGlT/hyk/tqhbnH9R3WCvbrfxt3i/9Omg==",
+ "sha512": "tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==",
"type": "package",
"path": "System.Reflection.TypeExtensions/4.1.0",
"files": [
@@ -1412,7 +1412,7 @@
]
},
"System.Resources.ResourceManager/4.0.1": {
- "sha512": "05XuEYw4Fi5Euxjgidj7YoGFt/X7nkus4pt3t6iXGQFnplygYqK8c8Vx6wuBXdEWqNOOFySivwocjOq/QzgPRg==",
+ "sha512": "TxwVeUNoTgUOdQ09gfTjvW411MF+w9MBYL7AtNVc+HtBCFlutPLhUCdZjNkjbhj3bNQWMdHboF0KIWEOjJssbA==",
"type": "package",
"path": "System.Resources.ResourceManager/4.0.1",
"files": [
@@ -1467,7 +1467,7 @@
]
},
"System.Runtime/4.1.0": {
- "sha512": "U7HBTYgTOTyWEMn5uTNH2vnY9eM9g5oUg9x80kPV7tK5dsRmITsM4jysfHB997F1SsdxWOEVO3y2GVN6NrbKyg==",
+ "sha512": "v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g==",
"type": "package",
"path": "System.Runtime/4.1.0",
"files": [
@@ -1557,7 +1557,7 @@
]
},
"System.Runtime.Extensions/4.1.0": {
- "sha512": "hdB56Iaitcpagf1tMOyJjZYjRjLX9bBOWVbvnwZREM13SSuY33PP3KEJ0Lf+qc/VpDEWdTFtvZZf3JNtjC+KUw==",
+ "sha512": "CUOHjTT/vgP0qGW22U4/hDlOqXmcPq5YicBaXdUR2UiUoLwBT+olO6we4DVbq57jeX5uXH2uerVZhf0qGj+sVQ==",
"type": "package",
"path": "System.Runtime.Extensions/4.1.0",
"files": [
@@ -1636,7 +1636,7 @@
]
},
"System.Runtime.Handles/4.0.1": {
- "sha512": "xr5zx7T8/AMOV7ESKyhGTfEtcabZlwuR/JWBOmirerNvoPpXjh8ALmnET2KraSrem/Z73G2uvOLCzkZ+T1dUAg==",
+ "sha512": "nCJvEKguXEvk2ymk1gqj625vVnlK3/xdGzx0vOKicQkoquaTBJTP13AIYkocSUwHCLNBwUbXTqTWGDxBTWpt7g==",
"type": "package",
"path": "System.Runtime.Handles/4.0.1",
"files": [
@@ -1672,7 +1672,7 @@
]
},
"System.Runtime.InteropServices/4.1.0": {
- "sha512": "KHYFnOciZ80k8sYCBam2MLW6nStFSO3sp13r/qE9VjtOh0XX7tfGzYlC4WdbSHv7xnrUhP5tOTgGfHi3E/pYWg==",
+ "sha512": "16eu3kjHS633yYdkjwShDHZLRNMKVi/s0bY8ODiqJ2RfMhDMAwxZaUaWVnZ2P71kr/or+X9o/xFWtNqz8ivieQ==",
"type": "package",
"path": "System.Runtime.InteropServices/4.1.0",
"files": [
@@ -1760,7 +1760,7 @@
]
},
"System.Text.Encoding/4.0.11": {
- "sha512": "SDjobpd+BG187ZrWlxK1YLFiyhMNPU9Z/XOGUvtGgaB6Qabpmg51gw8Tf8bRGKW3+HNKWkQnHoaM0Z/hU9Z3dg==",
+ "sha512": "U3gGeMlDZXxCEiY4DwVLSacg+DFWCvoiX+JThA/rvw37Sqrku7sEFeVBBBMBnfB6FeZHsyDx85HlKL19x0HtZA==",
"type": "package",
"path": "System.Text.Encoding/4.0.11",
"files": [
@@ -1826,7 +1826,7 @@
]
},
"System.Text.Encoding.Extensions/4.0.11": {
- "sha512": "Q0KXG6s+mkLUrX+RU1p2gOfmIVncEmhP0rSV/1OF0CUcduFgC9bJ1bf0Qbr5LYaKtRa39UpYMybhSLTiNT9W4A==",
+ "sha512": "jtbiTDtvfLYgXn8PTfWI+SiBs51rrmO4AAckx4KR6vFK9Wzf6tI8kcRdsYQNwriUeQ1+CtQbM1W4cMbLXnj/OQ==",
"type": "package",
"path": "System.Text.Encoding.Extensions/4.0.11",
"files": [
@@ -1892,7 +1892,7 @@
]
},
"System.Threading/4.0.11": {
- "sha512": "MgVya+4/1Ab8/JJB5F5XPGf9XzM2e+hdm9VeUhTLE19IEhf36v9zQdvwhrlFB4QzeRZMOM7LeWh1uZgHIJAgkg==",
+ "sha512": "N+3xqIcg3VDKyjwwCGaZ9HawG9aC6cSDI+s7ROma310GQo8vilFZa86hqKppwTHleR/G0sfOzhvgnUxWCR/DrQ==",
"type": "package",
"path": "System.Threading/4.0.11",
"files": [
@@ -1961,7 +1961,7 @@
]
},
"System.Threading.Tasks/4.0.11": {
- "sha512": "8cbSSCQk2gkgQJH7l8ih1cs1I8qXMOd28i/xJjuvUNGfomvIcPk93f26LBd7BVDANAT40byye9T5Zur5Dj1SRg==",
+ "sha512": "k1S4Gc6IGwtHGT8188RSeGaX86Qw/wnrgNLshJvsdNUOPP9etMmo8S07c+UlOAx4K/xLuN9ivA1bD0LVurtIxQ==",
"type": "package",
"path": "System.Threading.Tasks/4.0.11",
"files": [
@@ -7,8 +7,8 @@ namespace MasterMemory.Internal
{
internal static class KeyTupleComparerRegister
{
- static readonly MethodInfo[] registers; // 2 = 0, 3 = 1,...
- static readonly object[] emptyArgs = new object[0];
+ // static readonly MethodInfo[] registers; // 2 = 0, 3 = 1,...
+ // static readonly object[] emptyArgs = new object[0];
static KeyTupleComparerRegister()
{
@@ -20,7 +20,7 @@ static KeyTupleComparerRegister()
.OrderBy(x => x.GetGenericArguments().Length)
.ToArray();
#else
- registers = null;
+
#endif
}
@@ -10,7 +10,7 @@
using System;
[assembly: MasterMemoryHintAttribute(typeof(Sample))] // dummy
-[assembly: MasterMemoryHintAttribute(typeof(Sample), typeof(int), typeof(KeyTuple<string, string>), typeof(KeyTuple<string, string, int>))]
+[assembly: MasterMemoryHintAttribute(typeof(Sample), typeof(int), typeof(KeyTuple<string, string>), typeof(KeyTuple<string, string, int>), typeof(KeyTuple<int,int, string, string>), typeof(KeyTuple<string,int>))]
[assembly: MasterMemoryHintAttribute(typeof(Sample), typeof(MyDummyEnum1), typeof(KeyTuple<MyDummyEnum2, MyDummyEnum3>))]
public class TesTes_MyDummyEnum1_Comparer : IComparer<TesTes.MyDummyEnum1>
@@ -21,6 +21,8 @@ public static void Register()
ZeroFormatter.Formatters.Formatter.RegisterList<DefaultResolver, MasterMemory.Tests.Sample>();
MasterMemory.KeyTupleComparer.Register<string, string>();
MasterMemory.KeyTupleComparer.Register<string, string, int>();
+ MasterMemory.KeyTupleComparer.Register<int, int, string, string>();
+ MasterMemory.KeyTupleComparer.Register<string, int>();
MasterMemory.KeyTupleComparer.Register<MyDummyEnum2, MyDummyEnum3>();
}
}
@@ -21,8 +21,8 @@ public void Range()
range[3].Is(7);
range[4].Is(8);
- Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[-1]; });
- Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[5]; });
+ Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[-1]; UnityEngine.Debug.Log(_); });
+ Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[5]; UnityEngine.Debug.Log(_); });
var begin = 4;
foreach (var item in range)
@@ -56,8 +56,8 @@ public void Range()
range[4].Is(3);
range[5].Is(2);
- Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[-1]; });
- Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[6]; });
+ Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[-1]; UnityEngine.Debug.Log(_); });
+ Assert.Throws<ArgumentOutOfRangeException>(() => { var _ = range[6]; UnityEngine.Debug.Log(_); });
var begin = 7;
foreach (var item in range)
Oops, something went wrong.

0 comments on commit ae67601

Please sign in to comment.