1 implementation of IJsonData
System.Private.Windows.Core (1)
System\Private\Windows\JsonData.cs (1)
108internal struct JsonData<T> : IJsonData
9 references to IJsonData
System.Private.Windows.Core (9)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (3)
758if (value is not IJsonData jsonData) 764new BinaryLibrary(libraryId: 2, IJsonData.CustomAssemblyName).Write(writer); 766new 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"/> 156internal static IJsonData Create<T>(T data) => new JsonData<T>() { JsonBytes = JsonSerializer.SerializeToUtf8Bytes(data) };
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
595if (record.TypeName.AssemblyName?.FullName != IJsonData.CustomAssemblyName)
System\Private\Windows\Ole\Composition.cs (1)
140return result is IJsonData json ? json.Deserialize() : result;
System\Private\Windows\Ole\DataObjectCore.cs (2)
17internal static IJsonData TryJsonSerialize<T>(string format, T data) 32return IJsonData.Create(data);