HResult = HResults.COR_E_DATAMISALIGNED;
}
- internal DataMisalignedException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private DataMisalignedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
HResult = HResults.COR_E_EXECUTIONENGINE;
}
- internal ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
HResult = HResults.COR_E_INDEXOUTOFRANGE;
}
- internal IndexOutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private IndexOutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
HResult = HResults.COR_E_INSUFFICIENTEXECUTIONSTACK;
}
- internal InsufficientExecutionStackException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private InsufficientExecutionStackException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
HResult = HResults.COR_E_INVALIDPROGRAM;
}
- internal InvalidProgramException(SerializationInfo info, StreamingContext context) : base(info, context) { }
+ private InvalidProgramException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}
}
HResult = HResults.COR_E_MULTICASTNOTSUPPORTED;
}
- internal MulticastNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private MulticastNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
HResult = HResults.COR_E_AMBIGUOUSMATCH;
}
- internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
HResult = HResults.COR_E_TARGETINVOCATION;
}
- internal TargetInvocationException(SerializationInfo info, StreamingContext context)
+ private TargetInvocationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
HResult = HResults.COR_E_TARGETPARAMCOUNT;
}
- internal TargetParameterCountException(SerializationInfo info, StreamingContext context)
+ private TargetParameterCountException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
HResult = HResults.COR_E_STACKOVERFLOW;
}
- internal StackOverflowException(SerializationInfo info, StreamingContext context) : base(info, context)
+ private StackOverflowException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
public object? ExceptionState => null;
- internal ThreadAbortException(SerializationInfo info, StreamingContext context)
+ private ThreadAbortException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
HResult = HResults.COR_E_TYPEINITIALIZATION;
}
- internal TypeInitializationException(SerializationInfo info, StreamingContext context)
+ private TypeInitializationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
_typeName = info.GetString("TypeName");
info.AddValue("AssemblyName", string.Empty);
}
+#pragma warning disable CA2229 // public for compat
public UnitySerializationHolder(SerializationInfo info, StreamingContext context)
+#pragma warning restore CA2229
{
if (info == null)
{
Create(target, trackResurrection);
}
- internal WeakReference(SerializationInfo info, StreamingContext context)
+ private WeakReference(SerializationInfo info, StreamingContext context)
{
if (info == null)
{