Ejemplo n.º 1
0
 public override object ConvertFromInvariantString(string value)
 {
     return(new MatrixTransform
     {
         Matrix = MatrixTypeConverter.CreateMatrix(value)
     });
 }
Ejemplo n.º 2
0
        public override string ConvertToInvariantString(object value)
        {
            if (!(value is MatrixTransform mt))
            {
                throw new NotSupportedException();
            }
            var converter = new MatrixTypeConverter();

            return(converter.ConvertToInvariantString(mt.Matrix));
        }