System.Runtime.Serialization.Attributes
Contains attributes that are used for configuring serialization behavior in the .NET Framework.
[DataContractAttribute]
System.Runtime.SerializationSpecifies that a class or interface contains or defines a data contract. This attribute is used to define the shape of data for the DataContractSerializer, which is commonly used in Windows Communication Foundation (WCF) services.
[DataMemberAttribute]
System.Runtime.SerializationSpecifies that a public or non-public member of a type is a data member that is part of a data contract. This attribute is used with the DataContractAttribute to define the members to be serialized.
[IgnoreDataMemberAttribute]
System.Runtime.SerializationSpecifies that a data member should be ignored during serialization and deserialization. This attribute is applied to public members of types that are marked with DataContractAttribute.
[EnumMemberAttribute]
System.Runtime.SerializationSpecifies that an enumeration member is part of a data contract. The value of the string parameter, if present, is used as the member name during serialization.
[OnDeserializedAttribute]
System.Runtime.SerializationMarks a method to be called after deserialization is complete. This attribute is useful for performing any necessary post-deserialization setup or validation.
[OnDeserializingAttribute]
System.Runtime.SerializationMarks a method to be called before deserialization begins. This attribute is useful for performing any pre-deserialization setup.
[OnSerializedAttribute]
System.Runtime.SerializationMarks a method to be called after serialization is complete. This attribute is useful for performing any post-serialization cleanup or actions.
[OnSerializingAttribute]
System.Runtime.SerializationMarks a method to be called before serialization begins. This attribute is useful for performing any pre-serialization setup.
[CollectionDataContractAttribute]
System.Runtime.SerializationSpecifies that a class is a collection type and defines its data contract. This attribute is used to customize how collection types are serialized, especially in WCF.