public SvgUnit ToPercentage() { switch (this.Type) { case SvgUnitType.Percentage: return this; case SvgUnitType.User: return new SvgUnit(SvgUnitType.Percentage, this.Value * 100); default: throw new NotImplementedException(); } }