xamarin-macios/tests/monotouch-test/ImageIO
Rolf Bjarne Kvinge 2da529c328
[CGImageMetadataTag] Subclass NativeObject + numerous other code updates (#13240)
* [CGImageMetadataTag] Subclass NativeObject + numerous other code updates

* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Use the 'Runtime.GetNSObject<T> (IntPtr, bool)' overload to specify handle
  ownership, to avoid having to call NSObject.DangerousReleaes manually later.
* Remove the (IntPtr) constructor for .NET
* Fix nullability attribute.

* [tests] Don't dispose a property value.

It ends up being the object instance we've stored elsewhere, which we don't
expect to be disposed.
2021-11-04 14:54:06 +01:00
..
CGImageAnimationTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CGImageSourceTest.cs [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
ImageDestinationTest.cs [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
ImageMetadataTagTest.cs [CGImageMetadataTag] Subclass NativeObject + numerous other code updates (#13240) 2021-11-04 14:54:06 +01:00
ImageMetadataTest.cs [dotnet] Add support for implicit namespace imports. Fixes #12084. (#12173) 2021-07-23 15:07:03 +02:00
MutableImageMetadataTest.cs [dotnet] Add support for implicit namespace imports. Fixes #12084. (#12173) 2021-07-23 15:07:03 +02:00