vc *_* 74 10

如以下签名所示,DataMember属性不可继承

[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, Inherited = false, 
    AllowMultiple = false)]
public sealed class DataMemberAttribute : Attribute
Run Code Online (Sandbox Code Playgroud)

因此,使用此属性修饰接口成员几乎没有意义,因为您还必须使用此属性修饰实现类的成员.