Files
2026-06-04 11:42:34 +02:00

35 lines
963 B
C#

using System;
using System.Runtime.Remoting.Proxies;
using System.Runtime.Serialization;
namespace System.Runtime.Remoting.Messaging
{
// Token: 0x02000401 RID: 1025
internal class RemotingSurrogate : ISerializationSurrogate
{
// Token: 0x06002804 RID: 10244 RVA: 0x000832C0 File Offset: 0x000814C0
public virtual void GetObjectData(object obj, SerializationInfo si, StreamingContext sc)
{
if (obj == null || si == null)
{
throw new ArgumentNullException();
}
if (RemotingServices.IsTransparentProxy(obj))
{
RealProxy realProxy = RemotingServices.GetRealProxy(obj);
realProxy.GetObjectData(si, sc);
}
else
{
RemotingServices.GetObjectData(obj, si, sc);
}
}
// Token: 0x06002805 RID: 10245 RVA: 0x00083308 File Offset: 0x00081508
public virtual object SetObjectData(object obj, SerializationInfo si, StreamingContext sc, ISurrogateSelector selector)
{
throw new NotSupportedException();
}
}
}