简体   繁体   English

C#错误-未实现接口成员

[英]C# Error - Does not implement interface member

I have an obfuscated code, written in C#, that I need to build and make an exe. 我有一个用C#编写的模糊代码,我需要构建和制作一个exe。 However, I am getting error when build the project in VS 2012. The error says: 但是,在VS 2012中构建项目时出现错误。错误指出:

Error: 错误:

xf1555389a70c7d5a.x39b8e005139a3d89.xdd6080d77f5137d7' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. xf1555389a70c7d5a.x39b8e005139a3d89.xdd6080d77f5137d7'未实现接口成员'System.Collections.IEnumerable.GetEnumerator()'。 'xf1555389a70c7d5a.x39b8e005139a3d89.xdd6080d77f5137d7.GetEnumerator()' cannot implement 'System.Collections.IEnumerable.GetEnumerator()' because it does not have the matching return type of 'System.Collections.IEnumerator'. 'xf1555389a70c7d5a.x39b8e005139a3d89.xdd6080d77f5137d7.GetEnumerator()'无法实现'System.Collections.IEnumerable.GetEnumerator()',因为它没有匹配的返回类型'System.Collections.IEnumerator'。

File: x39b8e005139a3d89.cs 档案:x39b8e005139a3d89.cs

Here is xdd6080d77f5137d7.cs File obfuscated code: 这是xdd6080d77f5137d7.cs文件混淆的代码:

public class xdd6080d77f5137d7 : IEnumerable<x39b8e005139a3d89.xe657754b6d8c9c0b>, IEnumerable, IComparable, x39b8e005139a3d89.xe657754b6d8c9c0b
    {
      private readonly LOG_CODES _x9035cf16181332fc;
      private readonly BOARDS _x337e217cb3ba0627;
      private readonly DeviceMode _xa4aa8b4150b11435;

  public LOG_CODES xdc1af3a17717bf0a
  {
    get
    {
      return this._x9035cf16181332fc;
    }
  }

  public BOARDS xaf77e81a71d6921f
  {
    get
    {
      return this._x337e217cb3ba0627;
    }
  }

  public DeviceMode xad98d2ceb0921f0a
  {
    get
    {
      return this._xa4aa8b4150b11435;
    }
  }

  public xdd6080d77f5137d7(LOG_CODES code, BOARDS source, DeviceMode mode)
  {
    this._x9035cf16181332fc = code;
    this._x337e217cb3ba0627 = source;
    this._xa4aa8b4150b11435 = mode;
  }

  public xdd6080d77f5137d7(LOG_CODES code, DeviceMode mode)
  {
    this._x9035cf16181332fc = code;
    this._x337e217cb3ba0627 = BOARDS.boardNULL;
    this._xa4aa8b4150b11435 = mode;
  }

  public xdd6080d77f5137d7(LOG_CODES code, BOARDS source)
  {
    this._x9035cf16181332fc = code;
    this._x337e217cb3ba0627 = source;
    this._xa4aa8b4150b11435 = DeviceMode.None;
  }

  public xdd6080d77f5137d7(LOG_CODES code)
  {
    this._x9035cf16181332fc = code;
    this._x337e217cb3ba0627 = BOARDS.boardNULL;
    this._xa4aa8b4150b11435 = DeviceMode.None;
  }

  public int CompareTo(object obj)
  {
    x7ba9346687691c4e.x4e846d09fe48634b(obj is x39b8e005139a3d89.xdd6080d77f5137d7, "Wrong data type");
    x39b8e005139a3d89.xe657754b6d8c9c0b xe657754b6d8c9c0b = (x39b8e005139a3d89.xe657754b6d8c9c0b) obj;
    if (this.xdc1af3a17717bf0a > xe657754b6d8c9c0b.xdc1af3a17717bf0a)
      return 1;
    if (this.xdc1af3a17717bf0a < xe657754b6d8c9c0b.xdc1af3a17717bf0a)
      return -1;
    if (this.xaf77e81a71d6921f > xe657754b6d8c9c0b.xaf77e81a71d6921f)
      return 1;
    if (this.xaf77e81a71d6921f < xe657754b6d8c9c0b.xaf77e81a71d6921f)
      return -1;
    if (this.xad98d2ceb0921f0a > xe657754b6d8c9c0b.xad98d2ceb0921f0a)
      return 1;
    return this.xad98d2ceb0921f0a < xe657754b6d8c9c0b.xad98d2ceb0921f0a ? -1 : 0;
  }

  public IEnumerator<x39b8e005139a3d89.xe657754b6d8c9c0b> GetEnumerator()
  {
    throw new Exception("The method or operation is not implemented.");
  }

  IEnumerator IEnumerable.x05b0b83b5e6c5de6() // Also, I am getting Error at this Line. The error is: 'IEnumerable.x05b0b83b5e6c5de6' in explicit interface declaration is not a member of interface.
  {
    throw new Exception("The method or operation is not implemented.");
  }
}

Please see that there are 2 Errors (First one is above File x39b8e005139a3d89.cs and other error is at the end of the xdd6080d77f5137d7.cs file. ) 请注意有2个错误(第一个错误在File x39b8e005139a3d89.cs ,其他错误在xdd6080d77f5137d7.cs文件的末尾。)

Obviously the name must be IEnumerable.GetEnumerator instead of IEnumerable.x05b0b83b5e6c5de6 . 显然,该名称必须是IEnumerable.GetEnumerator而不是IEnumerable.x05b0b83b5e6c5de6

See: IEnumerable Interface 请参阅: IEnumerable接口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM