// ********************************************************************** // // Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** namespace Ice { /// /// Unknown sliced object holds an instance of unknown type. /// public sealed class UnknownSlicedObject : ObjectImpl { /// /// Instantiates the class for an Ice object having the given Slice type. /// /// The Slice type ID of the unknown object. public UnknownSlicedObject(string unknownTypeId) { _unknownTypeId = unknownTypeId; } /// /// Determine the Slice type ID associated with this object. /// /// The type ID. public string getUnknownTypeId() { return _unknownTypeId; } public override void write__(IceInternal.BasicStream os__) { os__.startWriteObject(_slicedData); os__.endWriteObject(); } public override void read__(IceInternal.BasicStream is__) { is__.startReadObject(); _slicedData = is__.endReadObject(true); } private string _unknownTypeId; private SlicedData _slicedData; } }