Example #1
0
        private Locator DeserializeLocator(BinaryReader reader)
        {
            long id = reader.ReadInt64();

            if (id == Locator.MIN.ID)
            {
                return(Locator.MIN);
            }

            Locator locator = scheme[id];

            if (!locator.IsReady)
            {
                locator.Prepare();
            }

            if (locator == null)
            {
                throw new Exception("Logical error");
            }

            return(locator);
        }