小编use*_*751的帖子

检测到无法访问的代码C#

我试图发布无限数量的喜欢,但根据数组中存储的cookie数量来循环cookie和代理.显然,i ++是无法访问的代码.这是什么原因?

public void PostLikes()
{
   PostLike postLike = new PostLike();
   for (int i =0;i<this.cookies.ToArray().Length;i++)
   {
      for (int j = 0; ; j++)
      {
         postLike.PostLike(this.cookies[i], this.importedProxies[i], this.proxyUsernameTextbox, this.proxyPasswordTextbox, this.postsIds[j]);
      }
   }
}
Run Code Online (Sandbox Code Playgroud)

.net c# for-loop control-structure unreachable-code

0
推荐指数
1
解决办法
2526
查看次数

相同字节显示不同的结果

在不更改byte [] numArray的情况下,即使字节保持完全相同,两个消息框也会显示不同的输出.我糊涂了.

第一个MessageBox的结果:stream:stream to =""version ="1.0"xmlns:stream ="http://etherx.jabber.org/streams">

第二个MessageBox的结果: F^ v

第三个MessageBox:"匹配"

MessageBox.Show(System.Text.Encoding.UTF8.GetString(numArray));
byte[] num1 = numArray;
byte[] encrypted =  getEncryptedInit(numArray);
MessageBox.Show(System.Text.Encoding.UTF8.GetString(numArray));
byte[] num2 = numArray;
if (num1.SequenceEqual<byte>(num2) == true)
{
    MessageBox.Show("Match");
}
Run Code Online (Sandbox Code Playgroud)

.net c# byte

0
推荐指数
1
解决办法
101
查看次数

标签 统计

.net ×2

c# ×2

byte ×1

control-structure ×1

for-loop ×1

unreachable-code ×1