public override bool Equals(object obj) { if (obj is LuaVar) { var eq = obj as LuaVar; return(state.compareRef(valueref, eq.Ref)); } else { return(false); } }