Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created May 13, 2024 18:18
Show Gist options
  • Save vs-mobiletools-engineering-service2/4db961e1d8c1f356d154f02000bc4e70 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/4db961e1d8c1f356d154f02000bc4e70 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
index 039f05b..118ad1e 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+35bcda3cf4d38e95a4ea02cba1e8bf7d60a896b4")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d8d3eae7bde2e33141c5f71c4c563e9f50d5d27d")]
[assembly: System.Reflection.AssemblyProductAttribute("bgen")]
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
index ca203eb..026d132 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
@@ -1 +1 @@
-{"documents":{"/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/35bcda3cf4d38e95a4ea02cba1e8bf7d60a896b4/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/4cb9dc263251f8c8eac41b95a857f37025974599/*"}}
\ No newline at end of file
+{"documents":{"/Users/builder/azdo/_work/1/s/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/d8d3eae7bde2e33141c5f71c4c563e9f50d5d27d/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/4cb9dc263251f8c8eac41b95a857f37025974599/*"}}
\ No newline at end of file
diff --git a/old/dotnet/ios/SourceLink.json b/new/dotnet/ios/SourceLink.json
index 4cd4b8b..671eaee 100644
--- a/old/dotnet/ios/SourceLink.json
+++ b/new/dotnet/ios/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/35bcda3cf4d38e95a4ea02cba1e8bf7d60a896b4/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/d8d3eae7bde2e33141c5f71c4c563e9f50d5d27d/src*"
}
}
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLCustomModel.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLCustomModel.g.cs
index 76dac28..dd4bf87 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLCustomModel.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLCustomModel.g.cs
@@ -58,6 +58,24 @@ namespace CoreML {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetPredictions", Selector = "predictionsFromBatch:options:error:", ReturnType = typeof (IMLBatchProvider), ParameterType = new Type [] { typeof (IMLBatchProvider), typeof (MLPredictionOptions), typeof (NSError) }, ParameterByRef = new bool [] { false, false, true })]
public partial interface IMLCustomModel : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (MLModelDescription modelDescription, NSDictionary<NSString, NSObject> parameters, out NSError error) where T: NSObject, IMLCustomModel
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var modelDescription__handle__ = modelDescription!.GetNonNullHandle (nameof (modelDescription));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ NativeHandle errorValue = IntPtr.Zero;
+ T? ret;
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (__handle__, Selector.GetHandle ("initWithModelDescription:parameterDictionary:error:"), modelDescription__handle__, parameters__handle__, &errorValue);
+ ret = global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret;
+ #endif
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("predictionFromFeatures:options:error:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/ios/generated-sources/Foundation/NSCoding.g.cs b/new/dotnet/ios/generated-sources/Foundation/NSCoding.g.cs
index 28672d6..a41d6bc 100644
--- a/old/dotnet/ios/generated-sources/Foundation/NSCoding.g.cs
+++ b/new/dotnet/ios/generated-sources/Foundation/NSCoding.g.cs
@@ -53,6 +53,15 @@ namespace Foundation {
[ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "EncodeTo", Selector = "encodeWithCoder:", ParameterType = new Type [] { typeof (NSCoder) }, ParameterByRef = new bool [] { false })]
public partial interface INSCoding : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, INSCoding
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("encodeWithCoder:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
index a40f5fc..deed5c8 100644
--- a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
+++ b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
@@ -73,6 +73,19 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnBatchNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnBatchNormalizationDataSource
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ #endif
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("purge")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
index 36451a4..948ada2 100644
--- a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
+++ b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
@@ -66,6 +66,19 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnInstanceNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnInstanceNormalizationDataSource
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ #endif
+ }
[Preserve (Conditional = true)]
nint Gamma {
[Export ("gamma")]
diff --git a/old/dotnet/maccatalyst/SourceLink.json b/new/dotnet/maccatalyst/SourceLink.json
index 4cd4b8b..671eaee 100644
--- a/old/dotnet/maccatalyst/SourceLink.json
+++ b/new/dotnet/maccatalyst/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/35bcda3cf4d38e95a4ea02cba1e8bf7d60a896b4/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/d8d3eae7bde2e33141c5f71c4c563e9f50d5d27d/src*"
}
}
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLCustomModel.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLCustomModel.g.cs
index fa028f9..e81f363 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLCustomModel.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLCustomModel.g.cs
@@ -58,6 +58,20 @@ namespace CoreML {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetPredictions", Selector = "predictionsFromBatch:options:error:", ReturnType = typeof (IMLBatchProvider), ParameterType = new Type [] { typeof (IMLBatchProvider), typeof (MLPredictionOptions), typeof (NSError) }, ParameterByRef = new bool [] { false, false, true })]
public partial interface IMLCustomModel : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (MLModelDescription modelDescription, NSDictionary<NSString, NSObject> parameters, out NSError error) where T: NSObject, IMLCustomModel
+ {
+ var modelDescription__handle__ = modelDescription!.GetNonNullHandle (nameof (modelDescription));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ NativeHandle errorValue = IntPtr.Zero;
+ T? ret;
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (__handle__, Selector.GetHandle ("initWithModelDescription:parameterDictionary:error:"), modelDescription__handle__, parameters__handle__, &errorValue);
+ ret = global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret;
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("predictionFromFeatures:options:error:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/maccatalyst/generated-sources/Foundation/NSCoding.g.cs b/new/dotnet/maccatalyst/generated-sources/Foundation/NSCoding.g.cs
index 01df71a..b8b0ef9 100644
--- a/old/dotnet/maccatalyst/generated-sources/Foundation/NSCoding.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Foundation/NSCoding.g.cs
@@ -53,6 +53,15 @@ namespace Foundation {
[ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "EncodeTo", Selector = "encodeWithCoder:", ParameterType = new Type [] { typeof (NSCoder) }, ParameterByRef = new bool [] { false })]
public partial interface INSCoding : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, INSCoding
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("encodeWithCoder:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
index 69e2d5b..2af40f1 100644
--- a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
@@ -73,6 +73,15 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnBatchNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnBatchNormalizationDataSource
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("purge")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
index d660b8a..b681774 100644
--- a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
@@ -66,6 +66,15 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnInstanceNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnInstanceNormalizationDataSource
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[Preserve (Conditional = true)]
nint Gamma {
[Export ("gamma")]
diff --git a/old/dotnet/macos/SourceLink.json b/new/dotnet/macos/SourceLink.json
index 4cd4b8b..671eaee 100644
--- a/old/dotnet/macos/SourceLink.json
+++ b/new/dotnet/macos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/35bcda3cf4d38e95a4ea02cba1e8bf7d60a896b4/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/d8d3eae7bde2e33141c5f71c4c563e9f50d5d27d/src*"
}
}
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLCustomModel.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLCustomModel.g.cs
index 70c548b..6daeb73 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLCustomModel.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLCustomModel.g.cs
@@ -53,6 +53,20 @@ namespace CoreML {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetPredictions", Selector = "predictionsFromBatch:options:error:", ReturnType = typeof (IMLBatchProvider), ParameterType = new Type [] { typeof (IMLBatchProvider), typeof (MLPredictionOptions), typeof (NSError) }, ParameterByRef = new bool [] { false, false, true })]
public partial interface IMLCustomModel : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (MLModelDescription modelDescription, NSDictionary<NSString, NSObject> parameters, out NSError error) where T: NSObject, IMLCustomModel
+ {
+ var modelDescription__handle__ = modelDescription!.GetNonNullHandle (nameof (modelDescription));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ NativeHandle errorValue = IntPtr.Zero;
+ T? ret;
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (__handle__, Selector.GetHandle ("initWithModelDescription:parameterDictionary:error:"), modelDescription__handle__, parameters__handle__, &errorValue);
+ ret = global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret;
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("predictionFromFeatures:options:error:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/macos/generated-sources/Foundation/NSCoding.g.cs b/new/dotnet/macos/generated-sources/Foundation/NSCoding.g.cs
index d84cb1f..aa91d98 100644
--- a/old/dotnet/macos/generated-sources/Foundation/NSCoding.g.cs
+++ b/new/dotnet/macos/generated-sources/Foundation/NSCoding.g.cs
@@ -48,6 +48,15 @@ namespace Foundation {
[ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "EncodeTo", Selector = "encodeWithCoder:", ParameterType = new Type [] { typeof (NSCoder) }, ParameterByRef = new bool [] { false })]
public partial interface INSCoding : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, INSCoding
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("encodeWithCoder:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
index 9370dd2..7372859 100644
--- a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
+++ b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
@@ -68,6 +68,15 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnBatchNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnBatchNormalizationDataSource
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("purge")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
index afc92b0..65f5189 100644
--- a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
+++ b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
@@ -61,6 +61,15 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnInstanceNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnInstanceNormalizationDataSource
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[Preserve (Conditional = true)]
nint Gamma {
[Export ("gamma")]
diff --git a/old/dotnet/tvos/SourceLink.json b/new/dotnet/tvos/SourceLink.json
index 4cd4b8b..671eaee 100644
--- a/old/dotnet/tvos/SourceLink.json
+++ b/new/dotnet/tvos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/35bcda3cf4d38e95a4ea02cba1e8bf7d60a896b4/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/d8d3eae7bde2e33141c5f71c4c563e9f50d5d27d/src*"
}
}
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLCustomModel.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLCustomModel.g.cs
index 861272f..a06f659 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLCustomModel.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLCustomModel.g.cs
@@ -50,6 +50,20 @@ namespace CoreML {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "GetPredictions", Selector = "predictionsFromBatch:options:error:", ReturnType = typeof (IMLBatchProvider), ParameterType = new Type [] { typeof (IMLBatchProvider), typeof (MLPredictionOptions), typeof (NSError) }, ParameterByRef = new bool [] { false, false, true })]
public partial interface IMLCustomModel : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (MLModelDescription modelDescription, NSDictionary<NSString, NSObject> parameters, out NSError error) where T: NSObject, IMLCustomModel
+ {
+ var modelDescription__handle__ = modelDescription!.GetNonNullHandle (nameof (modelDescription));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ NativeHandle errorValue = IntPtr.Zero;
+ T? ret;
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (__handle__, Selector.GetHandle ("initWithModelDescription:parameterDictionary:error:"), modelDescription__handle__, parameters__handle__, &errorValue);
+ ret = global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret;
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("predictionFromFeatures:options:error:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/tvos/generated-sources/Foundation/NSCoding.g.cs b/new/dotnet/tvos/generated-sources/Foundation/NSCoding.g.cs
index 26a070e..975fe24 100644
--- a/old/dotnet/tvos/generated-sources/Foundation/NSCoding.g.cs
+++ b/new/dotnet/tvos/generated-sources/Foundation/NSCoding.g.cs
@@ -45,6 +45,15 @@ namespace Foundation {
[ProtocolMember (IsRequired = true, IsProperty = false, IsStatic = false, Name = "EncodeTo", Selector = "encodeWithCoder:", ParameterType = new Type [] { typeof (NSCoder) }, ParameterByRef = new bool [] { false })]
public partial interface INSCoding : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, INSCoding
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("encodeWithCoder:")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
index dab7c29..a734325 100644
--- a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
+++ b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs
@@ -65,6 +65,15 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnBatchNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnBatchNormalizationDataSource
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export ("purge")]
[Preserve (Conditional = true)]
diff --git a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
index 683a044..477ef42 100644
--- a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
+++ b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs
@@ -58,6 +58,15 @@ namespace MetalPerformanceShaders {
public partial interface IMPSCnnInstanceNormalizationDataSource : INativeObject, IDisposable,
Foundation.INSCopying
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSCoder decoder) where T: NSObject, IMPSCnnInstanceNormalizationDataSource
+ {
+ var decoder__handle__ = decoder!.GetNonNullHandle (nameof (decoder));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (__handle__, Selector.GetHandle ("initWithCoder:"), decoder__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
[Preserve (Conditional = true)]
nint Gamma {
[Export ("gamma")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment