object IDesignerSerializationProvider.GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
 {
     if (typeof(System.Drawing.Color) == objectType)
     {
         currentSerializer = new ColorMarkupSerializer();
     }
     else if (typeof(System.Drawing.Size) == objectType)
     {
         currentSerializer = new SizeMarkupSerializer();
     }
     else if (typeof(System.Drawing.Point) == objectType)
     {
         currentSerializer = new PointMarkupSerializer();
     }
     return(currentSerializer);
 }
 object IDesignerSerializationProvider.GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
 {
     if (typeof(Color) == objectType)
     {
         currentSerializer = new ColorMarkupSerializer();
         return currentSerializer;
     }
     if (typeof(Size) == objectType)
     {
         currentSerializer = new SizeMarkupSerializer();
         return currentSerializer;
     }
     if (typeof(Point) == objectType)
     {
         currentSerializer = new PointMarkupSerializer();
     }
     return currentSerializer;
 }
 object IDesignerSerializationProvider.GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
 {
     if (typeof(System.Drawing.Color) == objectType)
         currentSerializer = new ColorMarkupSerializer();
     else if (typeof(System.Drawing.Size) == objectType)
         currentSerializer = new SizeMarkupSerializer();
     else if (typeof(System.Drawing.Point) == objectType)
         currentSerializer = new PointMarkupSerializer();
     return currentSerializer;
 }