Share via


CGSize.ToDictionary Method

Definition

Serializes a CGSize into an NSDictionary.

public Foundation.NSDictionary ToDictionary();
member this.ToDictionary : unit -> Foundation.NSDictionary

Returns

A NSDictionary with the values from this CGSize.

Remarks

The returned dictionary conforms to the serialization standard of Cocoa and CocoaTouch and can be used to serialize the state into objects that can be parsed by other Apple APIs.

It is possible to create a CGSize from an NSDictionary using the TryParse(NSDictionary, CGSize) method.

Applies to

See also