理解赋值/比较 vb.net [英] Understanding assignment/comparison vb.net

查看:28
本文介绍了理解赋值/比较 vb.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用 Stack Overflow,我试图理解这段代码最后一行中="的含义:

This is my first time on Stack Overflow and I am trying to understand what '=' means in the last line of this code:

Dim label As Label = Me.labels.Item(String.Concat(New Object() { movimiento.Sector1.ID, "-", movimiento.X1, "-", movimiento.Y1 }))
Dim dictionary As Dictionary(Of Label, Integer)
Dim label3 As Label
dictionary = Me.demandas2.Item(label3 = label) = (dictionary.Item(label3) - 1)

欢迎任何形式的帮助,提前致谢!

Any kind of help will be welcome, thanks in advance!

推荐答案

非常感谢大家.该片段是反编译 dll 的结果.我试图帮助合作伙伴.

Thanks a lot, everyone. The snippet was result of decompile a dll. I was trying to help a partner.

基于VB.Net代码反编译.Net反射器,这是一个错误.最后我们看到它首先应该使用 C# 代码反编译,这赋予代码完全不同的含义:

.Net reflector decompiled based on VB.Net code, that was a mistake. Finally we see that first it should decompile using C# code, that gives a complete different meaning to the code:

if (movimiento.Contenedor.Demanda2)
    {
        Dictionary<Label, int> dictionary;
        Label label3;
        (dictionary = this.demandas2)[label3 = label] = dictionary[label3] - 1;
        if (this.demandas2[label] == 0)
        {
            label.ForeColor = Color.Black;
        }
        (dictionary = this.demandas2)[label3 = label2] = dictionary[label3] + 1;
        label2.ForeColor = Color.DarkOrange;
    }

这篇关于理解赋值/比较 vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆