1 implementation of IJsonData
System.Private.Windows.Core (1)
System\Private\Windows\JsonData.cs (1)
107
internal struct JsonData<T> :
IJsonData
9 references to IJsonData
System.Private.Windows.Core (9)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (3)
758
if (value is not
IJsonData
jsonData)
764
new BinaryLibrary(libraryId: 2,
IJsonData
.CustomAssemblyName).Write(writer);
766
new ClassInfo(1, $"{typeof(
IJsonData
).Namespace}.JsonData", [$"<{nameof(jsonData.JsonBytes)}>k__BackingField", $"<{nameof(jsonData.InnerTypeAssemblyQualifiedName)}>k__BackingField"]),
System\Private\Windows\JsonData.cs (2)
15
/// If this type needs to be deserialized from stream in these instances, a workaround would be to create an assembly with the name <see cref="
IJsonData
.CustomAssemblyName"/>
155
internal static
IJsonData
Create<T>(T data) => new JsonData<T>() { JsonBytes = JsonSerializer.SerializeToUtf8Bytes(data) };
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
577
if (record.TypeName.AssemblyName?.FullName !=
IJsonData
.CustomAssemblyName)
System\Private\Windows\Ole\Composition.cs (1)
172
result is
IJsonData
json ? json.Deserialize() :
System\Private\Windows\Ole\DataObjectCore.cs (2)
18
internal static
IJsonData
TryJsonSerialize<T>(string format, T data)
33
return
IJsonData
.Create(data);