locked
Xamarin 2.3.3 : My converter isn't working due to a sealed class RRS feed

  • Question

  • User183635 posted

    Hello,

    This is my converter : public class NullableBoundsTypeConverter : BoundsTypeConverter { public override object ConvertFromInvariantString(string value) { Rectangle? rec = (Rectangle)base.ConvertFromInvariantString(value); return rec; } }

    Since the 2.3.3 update, a sealed keyword is present, so I can't use it.

    I want to use some fixs inside this release, so do you have a workaround about my is issue ?

    Regards

    Thursday, November 24, 2016 8:35 AM

All replies

  • User1004 posted

    if you can inherit, compose.

    public class NullableBoundsTypeConverter : TypeConverter { public override object ConvertFromInvariantString(string value) { var boundsTypeConverter = new BoundsTypeConverter(); Rectangle? rec = (Rectangle) boundsTypeConverter.ConvertFromInvariantString(value); return rec; } }

    Thursday, November 24, 2016 9:32 AM
  • User183635 posted

    Thanks for your help

    Thursday, November 24, 2016 9:46 AM