1 implementation of IJsonData
System.Private.Windows.Core (1)
System\Private\Windows\JsonData.cs (1)
108
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)
16
/// 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"/>
156
internal static
IJsonData
Create<T>(T data) => new JsonData<T>() { JsonBytes = JsonSerializer.SerializeToUtf8Bytes(data) };
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
595
if (record.TypeName.AssemblyName?.FullName !=
IJsonData
.CustomAssemblyName)
System\Private\Windows\Ole\Composition.cs (1)
140
return result is
IJsonData
json ? json.Deserialize() : result;
System\Private\Windows\Ole\DataObjectCore.cs (2)
17
internal static
IJsonData
TryJsonSerialize<T>(string format, T data)
32
return
IJsonData
.Create(data);