6 implementations of IValueSerializerContext
PresentationFramework (4)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (3)
184private sealed class ElementObjectContext : ValueSerializerContextWrapper, IValueSerializerContext 647private sealed class ElementPropertyContext : ValueSerializerContextWrapper, IValueSerializerContext 1177internal class ValueSerializerContextWrapper : IValueSerializerContext
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1447private class MarkupWriterContext : IValueSerializerContext
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
2788class TypeDescriptorAndValueSerializerContext : IValueSerializerContext, INamespacePrefixLookup, IXamlSchemaContextProvider, IXamlNameProvider
System.Xaml.Tests (1)
System\Windows\Markup\ValueSerializerTests.cs (1)
437public class CustomValueSerializerContext : IValueSerializerContext
164 references to IValueSerializerContext
PresentationCore (92)
System\Windows\Input\Command\KeyGestureValueSerializer.cs (4)
32public override bool CanConvertFromString(string value, IValueSerializerContext context) 44public override bool CanConvertToString(object value, IValueSerializerContext context) 61public override object ConvertFromString(string value, IValueSerializerContext context) 76public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Input\Command\MouseActionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 39public override bool CanConvertToString(object value, IValueSerializerContext context) 50public override object ConvertFromString(string value, IValueSerializerContext context) 65public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Input\Command\MouseGestureValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 39public override bool CanConvertToString(object value, IValueSerializerContext context) 62public override object ConvertFromString(string value, IValueSerializerContext context) 77public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\BrushValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 52public override object ConvertFromString(string value, IValueSerializerContext context) 67public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\CacheModeValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 52public override object ConvertFromString(string value, IValueSerializerContext context) 67public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\DoubleCollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\GeometryValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 52public override object ConvertFromString(string value, IValueSerializerContext context) 67public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\Int32CollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\PathFigureCollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 52public override object ConvertFromString(string value, IValueSerializerContext context) 67public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\PointCollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\TransformValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 52public override object ConvertFromString(string value, IValueSerializerContext context) 67public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\VectorCollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\FontFamilyValueSerializer.cs (4)
28public override bool CanConvertFromString(string value, IValueSerializerContext context) 36public override object ConvertFromString(string value, IValueSerializerContext context) 48public override bool CanConvertToString(object value, IValueSerializerContext context) 61public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\ImageSourceValueSerializer.cs (4)
26public override bool CanConvertFromString(string value, IValueSerializerContext context) 34public override bool CanConvertToString(object value, IValueSerializerContext context) 45public override object ConvertFromString(string value, IValueSerializerContext context) 65public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Matrix3DValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Point3DCollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Point3DValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Point4DValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\QuaternionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Rect3DValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Size3DValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Vector3DCollectionValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Vector3DValueSerializer.cs (4)
27public override bool CanConvertFromString(string value, IValueSerializerContext context) 35public override bool CanConvertToString(object value, IValueSerializerContext context) 49public override object ConvertFromString(string value, IValueSerializerContext context) 64public override string ConvertToString(object value, IValueSerializerContext context)
PresentationFramework (44)
System\Windows\Input\Command\CommandValueSerializer.cs (5)
16public override bool CanConvertToString(object value, IValueSerializerContext context) 53public override bool CanConvertFromString(string value, IValueSerializerContext context) 58public override string ConvertToString(object value, IValueSerializerContext context) 96public override IEnumerable<Type> TypeReferences(object value, IValueSerializerContext context) 112public override object ConvertFromString(string value, IValueSerializerContext context)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (12)
164public override void AssignRootContext(IValueSerializerContext context) 169internal IValueSerializerContext Context 188public ElementObjectContext(ElementMarkupObject obj, IValueSerializerContext baseContext): base(baseContext) 407private IValueSerializerContext _context; 600protected IValueSerializerContext Context 644protected abstract IValueSerializerContext GetItemContext(); 651public ElementPropertyContext(ElementPropertyBase property, IValueSerializerContext baseContext) 709private IValueSerializerContext _context; 721protected override IValueSerializerContext GetItemContext() 887IValueSerializerContext context, 1179IValueSerializerContext _baseContext; 1181public ValueSerializerContextWrapper(IValueSerializerContext baseContext)
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (6)
25public override void AssignRootContext(IValueSerializerContext context) 165IValueSerializerContext _context; 167public ExtensionSimplifierMarkupObject(MarkupObject baseObject, IValueSerializerContext context) 188public override void AssignRootContext(IValueSerializerContext context) 204IValueSerializerContext _context; 206public ExtensionSimplifierProperty(MarkupProperty baseProperty, IValueSerializerContext context) : base(baseProperty)
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (6)
29public override void AssignRootContext(IValueSerializerContext context) 102internal IValueSerializerContext Context 113private IValueSerializerContext _context; 201protected override IValueSerializerContext GetItemContext() 259protected override IValueSerializerContext GetItemContext() 328protected override IValueSerializerContext GetItemContext()
System\Windows\Markup\Primitives\MarkupWriter.cs (4)
168private bool RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, bool 1515public override bool CanConvertToString(object value, IValueSerializerContext context) 1520public override string ConvertToString(object value, IValueSerializerContext context) 1533public override IEnumerable<Type> TypeReferences(object value, IValueSerializerContext context)
System\Windows\Markup\RoutedEventValueSerializer.cs (4)
15public override bool CanConvertToString(object value, IValueSerializerContext context) 20public override bool CanConvertFromString(string value, IValueSerializerContext context) 25public override string ConvertToString(object value, IValueSerializerContext context) 52public override object ConvertFromString(string value, IValueSerializerContext context)
System\Windows\PropertyPath.cs (2)
878IValueSerializerContext serializerContext = context as IValueSerializerContext;
System\Windows\PropertyPathConverter.cs (2)
160IValueSerializerContext serializerContext = null; 163serializerContext = typeDescriptorContext as IValueSerializerContext;
System\Windows\SystemKeyConverter.cs (3)
62if ( destinationType == typeof(MarkupExtension) && context is IValueSerializerContext ) 141IValueSerializerContext valueSerializerContext = context as IValueSerializerContext;
System.Xaml (28)
ms\Internal\Markup\StringValueSerializer.cs (4)
17public override bool CanConvertToString(object? value, IValueSerializerContext? context) 22public override bool CanConvertFromString(string? value, IValueSerializerContext? context) 27public override object ConvertFromString(string value, IValueSerializerContext? context) 32public override string? ConvertToString(object? value, IValueSerializerContext? context)
ms\Internal\Markup\TypeConverterValueSerializer.cs (4)
25public override bool CanConvertToString(object? value, IValueSerializerContext? context) 30public override string? ConvertToString(object? value, IValueSerializerContext? context) 35public override bool CanConvertFromString(string? value, IValueSerializerContext? context) 40public override object? ConvertFromString(string value, IValueSerializerContext? context)
System\Windows\Markup\DateTimeValueSerializer.cs (4)
31public override bool CanConvertFromString(string? value, IValueSerializerContext? context) => true; 36public override bool CanConvertToString(object? value, IValueSerializerContext? context) => value is DateTime; 41public override object ConvertFromString(string value, IValueSerializerContext? context) 66public override string ConvertToString(object? value, IValueSerializerContext? context)
System\Windows\Markup\ValueSerializer.cs (7)
42public virtual bool CanConvertToString(object? value, IValueSerializerContext? context) 53public virtual bool CanConvertFromString(string? value, IValueSerializerContext? context) 65public virtual string? ConvertToString(object? value, IValueSerializerContext? context) 77public virtual object? ConvertFromString(string value, IValueSerializerContext? context) 96public virtual IEnumerable<Type> TypeReferences(object? value, IValueSerializerContext? context) 196public static ValueSerializer? GetSerializerFor(Type type, IValueSerializerContext? context) 218public static ValueSerializer? GetSerializerFor(PropertyDescriptor descriptor, IValueSerializerContext? context)
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
153public override bool CanConvertToString(XAML3.IValueSerializerContext context, XAML3.ValueSerializer serializer, object instance) 201public override string ConvertToString(XAML3.IValueSerializerContext context, XAML3.ValueSerializer serializer, object instance)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (2)
110public override bool CanConvertToString(IValueSerializerContext context, ValueSerializer serializer, object instance) 125public override string ConvertToString(IValueSerializerContext context, ValueSerializer serializer, object instance)
System\Xaml\XamlObjectReader.cs (3)
2471IValueSerializerContext valueSerializerContext; 2524public IValueSerializerContext ValueSerializerContext { get { return valueSerializerContext; } } 2814if (serviceType == typeof(IValueSerializerContext)) { return this; }
System\Xaml\XamlRuntime.cs (2)
32abstract public bool CanConvertToString(IValueSerializerContext context, ValueSerializer serializer, object instance); 38abstract public string ConvertToString(IValueSerializerContext context, ValueSerializer serializer, object instance);