27 lines
832 B
C#
27 lines
832 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Runtime.Remoting.Messaging
|
|
{
|
|
// Token: 0x02000402 RID: 1026
|
|
internal class ObjRefSurrogate : ISerializationSurrogate
|
|
{
|
|
// Token: 0x06002807 RID: 10247 RVA: 0x00083318 File Offset: 0x00081518
|
|
public virtual void GetObjectData(object obj, SerializationInfo si, StreamingContext sc)
|
|
{
|
|
if (obj == null || si == null)
|
|
{
|
|
throw new ArgumentNullException();
|
|
}
|
|
((ObjRef)obj).GetObjectData(si, sc);
|
|
si.AddValue("fIsMarshalled", 0);
|
|
}
|
|
|
|
// Token: 0x06002808 RID: 10248 RVA: 0x00083348 File Offset: 0x00081548
|
|
public virtual object SetObjectData(object obj, SerializationInfo si, StreamingContext sc, ISurrogateSelector selector)
|
|
{
|
|
throw new NotSupportedException("Do not use RemotingSurrogateSelector when deserializating");
|
|
}
|
|
}
|
|
}
|