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