public object GetRealObject(StreamingContext context)
        {
            var tInterfaces = Interfaces ?? MonoInterfaces.Select(it => Type.GetType(it)).ToArray();
            var tType       = BuildProxy.BuildType(Context, tInterfaces.First(), tInterfaces.Skip(1).ToArray());

            return(Impromptu.InitializeProxy(tType, Original, tInterfaces));
        }
Example #2
0
        public object GetRealObject(StreamingContext context)
        {
            var tInterfaces = Interfaces;

            if (tInterfaces == null)
            {
                throw new InvalidOperationException("Expected SerializationData to contain a non-null Interfaces field. Please consider upgrading mono!");
            }

            var tType = BuildProxy.BuildType(Context, tInterfaces.First(), tInterfaces.Skip(1).ToArray());

            return(Impromptu.InitializeProxy(tType, Original, tInterfaces));
        }