Ensure On* methods are not removed by BclRewriter
authorStephen Toub <stoub@microsoft.com>
Sat, 23 Jul 2016 04:53:10 +0000 (21:53 -0700)
committerStephen Toub <stoub@microsoft.com>
Mon, 15 Aug 2016 00:15:48 +0000 (20:15 -0400)
Commit migrated from https://github.com/dotnet/coreclr/commit/19984585ce87829b89f4755e2869f594245dd84e

src/coreclr/src/mscorlib/model.xml
src/coreclr/src/mscorlib/src/System/Diagnostics/Contracts/ContractsBCL.cs

index c7ffa7c..67641ea 100644 (file)
       <Member Name="GetTypeCode" />
       <Member Name="Multiply(System.Decimal,System.Decimal)" />
       <Member Name="Negate(System.Decimal)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="op_Addition(System.Decimal,System.Decimal)" />
       <Member Name="op_Decrement(System.Decimal)" />
       <Member Name="op_Division(System.Decimal,System.Decimal)" />
       <Member MemberType="Property" Name="TargetSite" />
       <Member Status="ImplRoot" Name="InternalToString" />
       <Member Status="ImplRoot" Name="InternalPreserveStackTrace" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
       <Member Status="ImplRoot" MemberType="Field" Name="_remoteStackIndex" /> <!-- EE -->
       <Member Status="ImplRoot" MemberType="Field" Name="_exceptionMethod" /> <!-- EE -->
       <Member Status="ImplRoot" MemberType="Field" Name="_exceptionMethodString" /> <!-- EE -->
       <Member Name="LastIndexOf(System.String,System.String,System.Int32,System.Globalization.CompareOptions)" />
       <Member Name="LastIndexOf(System.String,System.String,System.Int32,System.Int32)" />
       <Member Name="LastIndexOf(System.String,System.String,System.Int32,System.Int32,System.Globalization.CompareOptions)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ToString" />
       <Member MemberType="Property" Name="Name" />
     </Type>
       <Member Name="get_TwoLetterISOLanguageName" />
       <Member Name="GetFormat(System.Type)" />
       <Member Name="GetHashCode" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ReadOnly(System.Globalization.CultureInfo)" />
       <Member Name="set_CurrentCulture(System.Globalization.CultureInfo)" />
       <Member Name="set_CurrentUICulture(System.Globalization.CultureInfo)" />
       <Member Name="GetFormat(System.Type)" />
       <Member Name="GetInstance(System.IFormatProvider)" />
       <Member Name="GetMonthName(System.Int32)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ReadOnly(System.Globalization.DateTimeFormatInfo)" />
       <Member Name="set_AbbreviatedDayNames(System.String[])" />
       <Member Name="set_AbbreviatedMonthGenitiveNames(System.String[])" />
       <Member Name="IsLeapDay(System.Int32,System.Int32,System.Int32,System.Int32)" />
       <Member Name="IsLeapMonth(System.Int32,System.Int32,System.Int32)" />
       <Member Name="IsLeapYear(System.Int32,System.Int32)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="set_CalendarType(System.Globalization.GregorianCalendarTypes)" />
       <Member Name="set_TwoDigitYearMax(System.Int32)" />
       <Member Name="ToDateTime(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)" />
       <Member Name="get_PositiveSign" />
       <Member Name="GetFormat(System.Type)" />
       <Member Name="GetInstance(System.IFormatProvider)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ReadOnly(System.Globalization.NumberFormatInfo)" />
       <Member Name="set_CurrencyDecimalDigits(System.Int32)" />
       <Member Name="set_CurrencyDecimalSeparator(System.String)" />
       <Member Name="get_NativeName" />
       <Member Name="get_TwoLetterISORegionName" />
       <Member Name="GetHashCode" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ToString" />
       <Member MemberType="Property" Name="CurrencySymbol" />
       <Member MemberType="Property" Name="CurrentRegion" />
       <Member Name="GetNextTextElement(System.String,System.Int32)" />
       <Member Name="GetTextElementEnumerator(System.String)" />
       <Member Name="GetTextElementEnumerator(System.String,System.Int32)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ParseCombiningCharacters(System.String)" />
       <Member Name="set_String(System.String)" />
       <Member MemberType="Property" Name="LengthInTextElements" />
       <Member Name="get_ElementIndex" />
       <Member Name="GetTextElement" />
       <Member Name="MoveNext" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="Reset" />
       <Member MemberType="Property" Name="Current" />
       <Member MemberType="Property" Name="ElementIndex" />
       <Member Name="get_IsRightToLeft" />
       <Member Name="get_ListSeparator" />
       <Member Name="GetHashCode" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="set_ListSeparator(System.String)" />
       <Member Name="ToLower(System.Char)" />
       <Member Name="ToLower(System.String)" />
       <Member Name="get_IsValueCreated"/>
       <Member MemberType="Property" Name="Value"/>
       <Member Name="get_Value"/>
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
     </Type>
     <Type Status="ImplRoot" Name="System.System_LazyDebugView&lt;T&gt;">
       <Member Status="ImplRoot" Name="#ctor(System.Lazy&lt;T&gt;)"/>
       <Member Name="GetString(System.String)" />
       <Member Name="GetString(System.String,System.Globalization.CultureInfo)" />
       <Member Name="InternalGetResourceSet(System.Globalization.CultureInfo,System.Boolean,System.Boolean)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ReleaseAllResources" />
       <Member Name="set_IgnoreCase(System.Boolean)" />
       <Member MemberType="Property" Name="BaseName" />
       <Member Name="IsAlwaysNormalized" />
       <Member Name="IsAlwaysNormalized(System.Text.NormalizationForm)" />
     -->
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
       <Member Name="set_DecoderFallback(System.Text.DecoderFallback)" />
       <Member Name="set_EncoderFallback(System.Text.EncoderFallback)" />
       <Member MemberType="Property" Name="ASCII" />
       <Member Name="GetMaxByteCount(System.Int32)" />
       <Member Name="GetMaxCharCount(System.Int32)" />
       <Member Name="GetPreamble" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
     </Type>
     <Type Name="System.Text.UTF32Encoding">
       <Member Name="#ctor" />
       <Member Name="GetMaxByteCount(System.Int32)" />
       <Member Name="GetMaxCharCount(System.Int32)" />
       <Member Name="GetString(System.Byte[],System.Int32,System.Int32)" />
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDeserializing(System.Runtime.Serialization.StreamingContext)" />
     </Type>
     <Type Name="System.Text.UTF8Encoding">
       <Member Name="#ctor" />
     <Type Status="ImplRoot" Name="System.Diagnostics.EditAndContinueHelper">
       <Member MemberType="Field" Name="_objectReference" />
     </Type>
-    <Type Status="ImplRoot" Name="System.Diagnostics.StackFrameHelper" />
+    <Type Status="ImplRoot" Name="System.Diagnostics.StackFrameHelper">
+      <Member Status="ImplRoot" Name="OnDeserialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerialized(System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
+    </Type>
     <Type Name="System.Diagnostics.Tracing.EventAttribute">
       <Member Name="#ctor(System.Int32)" />
       <Member Name="get_EventId" />
index de7e8d2..804318e 100644 (file)
@@ -202,6 +202,7 @@ namespace System.Diagnostics.Contracts {
         }
     }
 
+    [Serializable]
     [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic")]
     internal sealed class ContractException : Exception
     {