Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
'class' does not implement interface member 'member'
A class derived from an interface, but the class did not implement one or more of the interface's members. A class must implement all members of interfaces from which it derives or else be declared abstract
.
Example 1
The following sample generates CS0535.
// CS0535.cs
public interface A
{
void F();
}
public class B : A {} // CS0535 A::F is not implemented
// OK
public class C : A {
public void F() {}
public static void Main() {}
}
Example 2
The following sample generates CS0535.
// CS0535_b.cs
using System;
class C : IDisposable {} // CS0535
// OK
class D : IDisposable {
void IDisposable.Dispose() {}
public void Dispose() {}
static void Main() {
using (D d = new D()) {}
}
}
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.