Inheritance: System.ComponentModel.TypeConverter
 /// <summary>${WP_core_Point2DCollectionConverter_method_ConvertFrom_D}</summary>
 /// <param name="value">${WP_core_Point2DCollectionConverter_method_ConvertFrom_param_value}</param>
 /// <param name="context">${WP_core_Point2DCollectionConverter_method_ConvertFrom_param_context}</param>
 /// <param name="culture">${WP_core_Point2DCollectionConverter_method_ConvertFrom_param_culture}</param>
 /// <returns>${WP_core_Point2DCollectionConverter_method_ConvertFrom_return}</returns>
 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
 {
     string str = value as string;
     if (str == null)
     {
         throw new NotSupportedException();
     }
     Point2DCollection points = new Point2DCollection();
     Point2DConverter converter = new Point2DConverter();
     int num = -1;
     for (int i = 0; i < (str.Length + 1); i++)
     {
         if ((i >= str.Length) || char.IsWhiteSpace(str[i]))
         {
             int startIndex = num + 1;
             int length = i - startIndex;
             if (length >= 1)
             {
                 string str2 = str.Substring(startIndex, length);
                 points.Add((Point2D)converter.ConvertFrom(str2));
             }
             num = i;
         }
     }
     return points;
 }
 /// <summary>
 /// ${WP_REST_Point2DCollectionConverter_method_WriteJson_D}
 /// </summary>
 public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
 {
     ICollection<Point2D> list = value as ICollection<Point2D>;
     if (list != null && list.Count > 0)
     {
         Point2DConverter converter=new Point2DConverter();
         writer.WriteStartArray();
         foreach (var item in list)
         {
             writer.WriteRawValue(JsonConvert.SerializeObject(item, converter));
         }
         writer.WriteEndArray();
     }
 }