Is [Serializable] attribute inherits?

I created a class like the following:

[Serializable]
public class ABC {
}

Will the subclasses of this class inherit the [Serializable] attribute



Answer this question

Is [Serializable] attribute inherits?

  • IfulConsultant

    Derived classes of ABC will not inherit the [Serializable] attribute. Each derived class must be explicitly marked as [Serializable].

  • Is [Serializable] attribute inherits?