From 292d4eaeb0656119acfe5bc654176792b35b5190 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 20 Jul 2016 21:46:55 -0700 Subject: Expose serialization primitives from System.Private.Corelib - Update the model.xml file to expose the serialization primitives from the runtime, e.g. [Serializable], [NonSerialized], ISerializable, etc. - Tweak how FEATURE_SERIALIZATION is used on some types. ISerializable and IDeserializationCallback are not ifdef'd based on FEATURE_SERIALIZATION, but their members are, which means there are some types which are implementing the interface but have the implementation of the interface's method ifdef'd. This commit removes the ifdef'ing of the methods on the interface, and then ifdef's the implementation of the interface on the offending types. --- src/mscorlib/src/System/Text/ISCIIEncoding.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mscorlib/src/System/Text/ISCIIEncoding.cs') diff --git a/src/mscorlib/src/System/Text/ISCIIEncoding.cs b/src/mscorlib/src/System/Text/ISCIIEncoding.cs index a26018f6cc..7e73bb70b9 100644 --- a/src/mscorlib/src/System/Text/ISCIIEncoding.cs +++ b/src/mscorlib/src/System/Text/ISCIIEncoding.cs @@ -31,7 +31,10 @@ namespace System.Text #if FEATURE_SERIALIZATION [Serializable] #endif - internal class ISCIIEncoding : EncodingNLS, ISerializable + internal class ISCIIEncoding : EncodingNLS +#if FEATURE_SERIALIZATION + , ISerializable +#endif { // Constants private const int CodeDefault = 0; // 0x40 Default -- cgit v1.2.3