MapSuiteGisEditor/WpfDesktopExtension/Overlays/WorldMapKitMapOverlay.cs
/// <summary>
/// This method saves overlay state to a byte array.
/// </summary>
/// <returns>A byte array indicates current overlay state.</returns>
This method saves overlay state to a byte array.
This method saves overlay state to a byte array .
protected override byte[] SaveStateCore()
        {
            byte[] baseState = base.SaveStateCore();
            Stack<object> state = new Stack<object>();
            state.Push(baseState);
            state.Push(TimeoutInSeconds);
            using (MemoryStream stream = new MemoryStream())
            {
                BinaryFormatter formatter = new BinaryFormatter();
                formatter.Serialize(stream, state);
                return stream.ToArray();
            }
        }
protected override byte [ ] SaveStateCore ( ) { byte [ ] baseState = base . SaveStateCore ( ) ; Stack < object > state = new Stack < object > ( ) ; state . Push ( baseState ) ; state . Push ( TimeoutInSeconds ) ; using ( MemoryStream stream = new MemoryStream ( ) ) { BinaryFormatter formatter = new BinaryFormatter ( ) ; formatter . Serialize ( stream , state ) ; return stream . ToArray ( ) ; } }
This method saves overlay state to a byte array.
This method saves overlay state to a byte array .
A byte array indicates current overlay state.
A byte array indicates current overlay state .