<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.1.25451.107" />

SerializationRecordExtensions

public static object Deserialize(this SerializationRecord rootRecord, IReadOnlyDictionary<SerializationRecordId, SerializationRecord> recordMap, ITypeResolver typeResolver)

Deserializes the SerializationRecord to an object.

public static bool TryGetColor(this SerializationRecord record, out object value)

Tries to get this object as a Color.

public static bool TryGetDrawingPrimitivesObject(this SerializationRecord record, out object value)

Try to get a supported System.Drawing.Primitives object that has a TypeConverter. This method is used for Clipboard payload deserialization. ResX deserialization uses TypeConverters for these types.

public static bool TryGetFrameworkObject(this SerializationRecord record, out object value)

Try to get a supported .NET type object (not WinForms) that has no TypeConverter.

public static bool TryGetNotSupportedException(this SerializationRecord record, out object exception)

Tries to get this object as a binary formatted NotSupportedException.

public static bool TryGetPoint(this SerializationRecord record, out object value)

Tries to get this object as a Point.

public static bool TryGetPointF(this SerializationRecord record, out object value)

Tries to get this object as a PointF.

public static bool TryGetPrimitiveArray(this SerializationRecord record, out object value)

Tries to get this object as an Array of primitive types.

public static bool TryGetPrimitiveArrayList(this SerializationRecord record, out object value)

Tries to get this object as a ArrayList of PrimitiveType values.

public static bool TryGetPrimitiveHashtable(this SerializationRecord record, out Hashtable hashtable)

Tries to get this object as a binary formatted Hashtable of PrimitiveType keys and values.

public static bool TryGetPrimitiveHashtable(this SerializationRecord record, out object hashtable)

Tries to get this object as a binary formatted Hashtable of PrimitiveType keys and values.

public static bool TryGetPrimitiveList(this SerializationRecord record, out object list)

Tries to get this object as a List<T> of PrimitiveType.

public static bool TryGetPrimitiveType(this SerializationRecord record, out object value)

Tries to get this object as a primitive type or string.

public static bool TryGetRectangle(this SerializationRecord record, out object value)

Tries to get this object as a Rectangle.

public static bool TryGetRectangleF(this SerializationRecord record, out object value)

Tries to get this object as a RectangleF.

public static bool TryGetSize(this SerializationRecord record, out object value)

Tries to get this object as a Size.

public static bool TryGetSizeF(this SerializationRecord record, out object value)

Tries to get this object as a SizeF.