protected Layer(SerializationInfo info, StreamingContext context)
{
this.Bounds = (Rectangle2D)info.GetValue("Bounds", typeof(Rectangle2D));
this.Caption = info.GetString("Caption");
this.Description = info.GetString("Description");
this.Name = info.GetString("Name");
this.Queryable = info.GetBoolean("Queryable");
this.SubLayers = (LayerCollection)info.GetValue("SubLayers", typeof(LayerCollection));
this.Type = (LayerType)info.GetValue("Type", typeof(LayerType));
this.Visible = info.GetBoolean("Visible");
}