From 62f6a82edfd1204956b59c7e6d641dcc0ea66dc5 Mon Sep 17 00:00:00 2001 From: "jinjun.ljj" Date: Tue, 28 Aug 2018 18:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0System.Object.op=5FInequality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CSharp.lua/CoreSystem.Lua/CoreSystem/Core.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CSharp.lua/CoreSystem.Lua/CoreSystem/Core.lua b/CSharp.lua/CoreSystem.Lua/CoreSystem/Core.lua index 911c950c..2992442a 100644 --- a/CSharp.lua/CoreSystem.Lua/CoreSystem/Core.lua +++ b/CSharp.lua/CoreSystem.Lua/CoreSystem/Core.lua @@ -882,6 +882,10 @@ local function equalsStatic(x, y) return x:EqualsObj(y) end +local function inequalsStatic(x, y) + return not equalsStatic(x, y); +end + Object = defCls("System.Object", { __call = new, __default__ = emptyFn, @@ -892,6 +896,8 @@ Object = defCls("System.Object", { ReferenceEquals = equals, GetHashCode = identityFn, EqualsStatic = equalsStatic, + op_Inequality = inequalsStatic, + op_Equality = equalsStatic, GetType = false, ToString = function(this) return this.__name__ end })