public override object ProvideValue(IServiceProvider serviceProvider)
        {
            _stream.Position = 0;
            switch (_converterId)
            {
            case Baml2006SchemaContext.KnownTypes.XamlBrushSerializer:
                return(System.Windows.Media.SolidColorBrush.DeserializeFrom(_reader,
                                                                            new DeferredBinaryDeserializerExtensionContext(serviceProvider, _freezer, _canFreeze)));

            case Baml2006SchemaContext.KnownTypes.XamlPathDataSerializer:
                return(Parsers.DeserializeStreamGeometry(_reader));

            case Baml2006SchemaContext.KnownTypes.XamlPoint3DCollectionSerializer:
                return(Point3DCollection.DeserializeFrom(_reader));

            case Baml2006SchemaContext.KnownTypes.XamlPointCollectionSerializer:
                return(PointCollection.DeserializeFrom(_reader));

            case Baml2006SchemaContext.KnownTypes.XamlVector3DCollectionSerializer:
                return(Vector3DCollection.DeserializeFrom(_reader));

            default:
                throw new NotImplementedException();
            }
        }
        // Token: 0x0600107A RID: 4218 RVA: 0x000418F4 File Offset: 0x0003FAF4
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            this._stream.Position = 0L;
            switch (this._converterId)
            {
            case 744:
                return(SolidColorBrush.DeserializeFrom(this._reader, new DeferredBinaryDeserializerExtension.DeferredBinaryDeserializerExtensionContext(serviceProvider, this._freezer, this._canFreeze)));

            case 746:
                return(Parsers.DeserializeStreamGeometry(this._reader));

            case 747:
                return(Point3DCollection.DeserializeFrom(this._reader));

            case 748:
                return(PointCollection.DeserializeFrom(this._reader));

            case 752:
                return(Vector3DCollection.DeserializeFrom(this._reader));
            }
            throw new NotImplementedException();
        }
 /// <summary>
 ///   Convert a compact binary representation of a collection
 ///     into a Point3DCollection into and instance
 /// </summary>
 /// <remarks>
 /// This is called ONLY from the Parser and is not a general public method.
 /// </remarks>
 public static object StaticConvertCustomBinaryToObject(
     BinaryReader reader)
 {
     return(PointCollection.DeserializeFrom(reader));
 }